From 1db9a5bc0ed5855eed384ed5e73cfae46498cb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 2 Dec 2021 09:04:25 +0100 Subject: [PATCH] clippy: allow manual_range_contains MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we use it quite often in this module, and it's more readable when split. Signed-off-by: Fabian Grünbichler --- proxmox-sys/src/systemd.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxmox-sys/src/systemd.rs b/proxmox-sys/src/systemd.rs index 3359131c..4575a204 100644 --- a/proxmox-sys/src/systemd.rs +++ b/proxmox-sys/src/systemd.rs @@ -1,5 +1,7 @@ use anyhow::{bail, Error}; +#[allow(clippy::manual_range_contains)] + fn parse_hex_digit(d: u8) -> Result { if d >= b'0' && d <= b'9' { return Ok(d - b'0');