From 7bbffae5be93007df3f4e5b7bc2cfcd3efb60b88 Mon Sep 17 00:00:00 2001 From: Irene Diez Date: Tue, 20 Feb 2024 15:34:33 +0100 Subject: [PATCH] chore: fix clippy warnings Signed-off-by: Irene Diez --- manufacturing-client/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manufacturing-client/src/main.rs b/manufacturing-client/src/main.rs index f9277754d..94de99aa9 100644 --- a/manufacturing-client/src/main.rs +++ b/manufacturing-client/src/main.rs @@ -710,7 +710,7 @@ impl KeyReference { allowed_storage_types: Option<&[KeyStorageType]>, ) -> Result { let allowed_storage_types = match allowed_storage_types { - Some(storage_types) if storage_types.is_empty() => { + Some([]) => { bail!("No key storage types allowed") } Some(storage_types) => storage_types,