From 7fefb5fde2765639ea86268b580a28514dc8ead0 Mon Sep 17 00:00:00 2001 From: Philip Mueller Date: Thu, 22 Jun 2023 23:02:14 +0200 Subject: [PATCH] [code] try to make clippy happy --- src/storage/storage_device.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/storage/storage_device.rs b/src/storage/storage_device.rs index a41085c..098b241 100644 --- a/src/storage/storage_device.rs +++ b/src/storage/storage_device.rs @@ -75,8 +75,7 @@ impl<'a> StorageDevice<'a> { .chars() .rev() .next() - .expect("Storage device name is empty") - .is_digit(10) + .expect("Storage device name is empty").is_ascii_digit() { format!("{}p{}", self.name, index) } else {