Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation error when using without the flate2 feature #263

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions russh/src/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Compress {
&mut self,
input: &'a [u8],
_: &'a mut russh_cryptovec::CryptoVec,
) -> Result<&'a [u8], Error> {
) -> Result<&'a [u8], crate::Error> {
Ok(input)
}
}
Expand All @@ -82,7 +82,7 @@ impl Decompress {
&mut self,
input: &'a [u8],
_: &'a mut russh_cryptovec::CryptoVec,
) -> Result<&'a [u8], Error> {
) -> Result<&'a [u8], crate::Error> {
Ok(input)
}
}
Expand Down
2 changes: 2 additions & 0 deletions russh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,11 @@ pub enum Error {
Utf8(#[from] std::str::Utf8Error),

#[error(transparent)]
#[cfg(feature = "flate2")]
Compress(#[from] flate2::CompressError),

#[error(transparent)]
#[cfg(feature = "flate2")]
Decompress(#[from] flate2::DecompressError),

#[error(transparent)]
Expand Down
Loading