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:
Fabian Grünbichler 2021-12-02 09:04:25 +01:00
parent 9c9b5c02b4
commit 1db9a5bc0e

View File

@ -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');