mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 11:06:02 +00:00
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};
|
use anyhow::{bail, Error};
|
||||||
|
|
||||||
|
#[allow(clippy::manual_range_contains)]
|
||||||
|
|
||||||
fn parse_hex_digit(d: u8) -> Result<u8, Error> {
|
fn parse_hex_digit(d: u8) -> Result<u8, Error> {
|
||||||
if d >= b'0' && d <= b'9' {
|
if d >= b'0' && d <= b'9' {
|
||||||
return Ok(d - b'0');
|
return Ok(d - b'0');
|
||||||
|
Loading…
Reference in New Issue
Block a user