Skip to content

Commit

Permalink
Fixed fmt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dyz1990 committed Oct 22, 2023
1 parent 8ffd11e commit e09c680
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/decoders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ pub fn add_decoder<I: Read>(
let de = Aes256Sha256Decoder::new(input, coder, password)?;
Ok(Decoder::AES256SHA256(de))
}
_ => {
Err(Error::UnsupportedCompressionMethod(
method.name().to_string(),
))
}
_ => Err(Error::UnsupportedCompressionMethod(
method.name().to_string(),
)),
}
}

Expand Down
8 changes: 3 additions & 5 deletions src/encoders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ pub fn add_encoder<W: Write>(

Ok(Encoder::AES(Aes256Sha256Encoder::new(input, options)?))
}
_ => {
Err(Error::UnsupportedCompressionMethod(
method.name().to_string(),
))
}
_ => Err(Error::UnsupportedCompressionMethod(
method.name().to_string(),
)),
}
}

Expand Down

0 comments on commit e09c680

Please sign in to comment.