Skip to content

Commit

Permalink
make rust-analyzer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mcginty committed Jan 31, 2024
1 parent c2e4537 commit 15c7eb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/resolvers/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ impl Cipher for CipherXChaChaPoly {

impl Default for HashSHA256 {
fn default() -> HashSHA256 {
HashSHA256 { hasher: Sha256::new() }
HashSHA256 { hasher: Sha256::default() }
}
}

Expand All @@ -353,7 +353,7 @@ impl Hash for HashSHA256 {
}

fn reset(&mut self) {
self.hasher = Sha256::new();
self.hasher = Sha256::default();
}

fn input(&mut self, data: &[u8]) {
Expand All @@ -368,7 +368,7 @@ impl Hash for HashSHA256 {

impl Default for HashSHA512 {
fn default() -> HashSHA512 {
HashSHA512 { hasher: Sha512::new() }
HashSHA512 { hasher: Sha512::default() }
}
}

Expand All @@ -386,7 +386,7 @@ impl Hash for HashSHA512 {
}

fn reset(&mut self) {
self.hasher = Sha512::new();
self.hasher = Sha512::default();
}

fn input(&mut self, data: &[u8]) {
Expand Down

0 comments on commit 15c7eb1

Please sign in to comment.