crypto: Fix a couple of new clippy warnings.
This commit is contained in:
parent
60950044f2
commit
8924865c9c
2 changed files with 4 additions and 8 deletions
|
@ -597,9 +597,9 @@ mod test {
|
|||
fn proptest_decimals(bytes in prop::array::uniform5(0u8..)) {
|
||||
let (first, second, third) = bytes_to_decimal(bytes.to_vec());
|
||||
|
||||
prop_assert!(first <= 9191 && first >= 1000);
|
||||
prop_assert!(second <= 9191 && second >= 1000);
|
||||
prop_assert!(third <= 9191 && third >= 1000);
|
||||
prop_assert!((1000..=9191).contains(&first));
|
||||
prop_assert!((1000..=9191).contains(&second));
|
||||
prop_assert!((1000..=9191).contains(&third));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -695,11 +695,7 @@ impl InnerSas {
|
|||
}
|
||||
|
||||
fn can_be_presented(&self) -> bool {
|
||||
match self {
|
||||
InnerSas::KeyRecieved(_) => true,
|
||||
InnerSas::MacReceived(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, InnerSas::KeyRecieved(_) | InnerSas::MacReceived(_))
|
||||
}
|
||||
|
||||
fn is_done(&self) -> bool {
|
||||
|
|
Loading…
Reference in a new issue