Clippy :|

This commit is contained in:
Maybe Waffle 2022-07-03 13:13:34 +04:00
parent 88ddf7f7a2
commit e8ce86df8b

View file

@ -170,7 +170,7 @@ fn check_secret(bytes: &[u8]) -> Result<&[u8], &'static str> {
let len = bytes.len(); let len = bytes.len();
// Check that length is in bounds // Check that length is in bounds
if !(1 <= len && len <= 256) { if !(1..=256).contains(&len) {
return Err("secret token length must be in range 1..=256"); return Err("secret token length must be in range 1..=256");
} }