Skip to content

Commit

Permalink
style: Fix 2 clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Sep 28, 2024
1 parent 97bf4db commit e04c611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,6 @@ impl<W: Write + Seek> ZipWriter<W> {
/// Add a new file using the already compressed data from a ZIP file being read and renames it, this
/// allows faster copies of the `ZipFile` since there is no need to decompress and compress it again.
/// Any `ZipFile` metadata is copied and not checked, for example the file CRC.

/// ```no_run
/// use std::fs::File;
/// use std::io::{Read, Seek, Write};
Expand Down
4 changes: 2 additions & 2 deletions src/zipcrypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ impl Debug for ZipCryptoKeys {
return f.write_fmt(format_args!("ZipCryptoKeys(hash {})", t.finish()));

Check failure on line 30 in src/zipcrypto.rs

View workflow job for this annotation

GitHub Actions / style_and_docs (--no-default-features)

unneeded `return` statement

Check failure on line 30 in src/zipcrypto.rs

View workflow job for this annotation

GitHub Actions / style_and_docs (--all-features)

unneeded `return` statement

Check failure on line 30 in src/zipcrypto.rs

View workflow job for this annotation

GitHub Actions / style_and_docs

unneeded `return` statement
}
#[cfg(any(test, fuzzing))]
return f.write_fmt(format_args!(
f.write_fmt(format_args!(
"ZipCryptoKeys::of({:#10x},{:#10x},{:#10x})",
self.key_0, self.key_1, self.key_2
));
))
}
}

Expand Down

0 comments on commit e04c611

Please sign in to comment.