Clippy :|

Former-commit-id: e8ce86df8b
This commit is contained in:
Maybe Waffle 2022-07-03 13:13:34 +04:00
parent 4be7e5a812
commit f46358878b

View file

@ -170,7 +170,7 @@ fn check_secret(bytes: &[u8]) -> Result<&[u8], &'static str> {
let len = bytes.len();
// 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");
}