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