Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Allow many single character names
Browse files Browse the repository at this point in the history
When implementing `HashEngine` we use a bunch of local variables that
are bytes within the hash. These are sequential so usage of a,b,c,... is
perfectly readable and expressive.

Shoosh clippy.
  • Loading branch information
tcharding committed Jan 15, 2022
1 parent 0a82176 commit 4dc9f77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sha1.rs
Expand Up @@ -137,6 +137,7 @@ impl crate::Hash for Hash {
}
}

#[allow(clippy::many_single_char_names)]
impl HashEngine {
// Basic unoptimized algorithm from Wikipedia
fn process_block(&mut self) {
Expand Down
1 change: 1 addition & 0 deletions src/sha256.rs
Expand Up @@ -230,6 +230,7 @@ macro_rules! round(
)
);

#[allow(clippy::many_single_char_names)]
impl HashEngine {
/// Create a new [HashEngine] from a midstate.
///
Expand Down
1 change: 1 addition & 0 deletions src/sha512.rs
Expand Up @@ -217,6 +217,7 @@ macro_rules! round(
)
);

#[allow(clippy::many_single_char_names)]
impl HashEngine {
// Algorithm copied from libsecp256k1
fn process_block(&mut self) {
Expand Down

0 comments on commit 4dc9f77

Please sign in to comment.