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

Commit

Permalink
Rolling back linting fixes that are not supported by the current stab…
Browse files Browse the repository at this point in the history
…le rust compiler version
  • Loading branch information
dr-orlovsky committed Sep 26, 2019
1 parent 735b3fc commit 9b56acc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/sha1.rs
Expand Up @@ -146,10 +146,10 @@ impl HashEngine {

for (i, &wi) in w.iter().enumerate() {
let (f, k) = match i {
0..=19 => ((b & c) | (!b & d), 0x5a827999),
20..=39 => (b ^ c ^ d, 0x6ed9eba1),
40..=59 => ((b & c) | (b & d) | (c & d), 0x8f1bbcdc),
60..=79 => (b ^ c ^ d, 0xca62c1d6),
0...19 => ((b & c) | (!b & d), 0x5a827999),
20...39 => (b ^ c ^ d, 0x6ed9eba1),
40...59 => ((b & c) | (b & d) | (c & d), 0x8f1bbcdc),
60...79 => (b ^ c ^ d, 0xca62c1d6),
_ => unreachable!()
};

Expand Down
4 changes: 2 additions & 2 deletions src/std_impls.rs
Expand Up @@ -24,12 +24,12 @@ use Error;

impl error::Error for Error {
fn description(&self) -> &str { "`std::error::description` is deprecated" }
fn cause(&self) -> Option<&dyn error::Error> { None }
fn cause(&self) -> Option<&error::Error> { None }
}

impl error::Error for hex::Error {
fn description(&self) -> &str { "`std::error::description` is deprecated" }
fn cause(&self) -> Option<&dyn error::Error> { None }
fn cause(&self) -> Option<&error::Error> { None }
}

impl io::Write for sha1::HashEngine {
Expand Down

0 comments on commit 9b56acc

Please sign in to comment.