From a80cda0cdf8d6ebc5b571d3cf3733334117789a7 Mon Sep 17 00:00:00 2001 From: Petre Eftime Date: Mon, 21 Nov 2022 09:39:52 +0000 Subject: [PATCH] fix clippy::explicit_auto_deref Signed-off-by: Petre Eftime --- src/enclave_proc/utils.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/enclave_proc/utils.rs b/src/enclave_proc/utils.rs index b787f4bd..60723766 100644 --- a/src/enclave_proc/utils.rs +++ b/src/enclave_proc/utils.rs @@ -121,8 +121,9 @@ pub fn get_slot_id(enclave_id: String) -> Result { let tokens: Vec<&str> = enclave_id.split("-enc").collect(); match tokens.get(1) { - Some(slot_id) => u64::from_str_radix(*slot_id, 16) - .map_err(|_err| "Invalid enclave id format".to_string()), + Some(slot_id) => { + u64::from_str_radix(slot_id, 16).map_err(|_err| "Invalid enclave id format".to_string()) + } None => Err("Invalid enclave_id.".to_string()), } }