forked from Proxmox/proxmox
clippy: allow manual_range_contains
we use it quite often in this module, and it's more readable when split. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
9c9b5c02b4
commit
1db9a5bc0e
@ -1,5 +1,7 @@
|
||||
use anyhow::{bail, Error};
|
||||
|
||||
#[allow(clippy::manual_range_contains)]
|
||||
|
||||
fn parse_hex_digit(d: u8) -> Result<u8, Error> {
|
||||
if d >= b'0' && d <= b'9' {
|
||||
return Ok(d - b'0');
|
||||
|
Loading…
Reference in New Issue
Block a user