From 6b987bd8f0e52a0b3a12cca22093d6f3192d28e6 Mon Sep 17 00:00:00 2001 From: Thibaud Dauce Date: Mon, 14 Aug 2023 13:04:18 +0200 Subject: [PATCH] Fix wrong error message --- src/structs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structs.rs b/src/structs.rs index f2bd8cee..51f285ac 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -562,9 +562,9 @@ impl TryFrom> if old_value.is_none() { Ok(acc) } else { - Err(Self::Error::CryptoError( - "Several chains given for the uid: {uid}".to_string(), - )) + Err(Self::Error::CryptoError(format!( + "Several chains given for the uid: {k:?}" + ))) } }) }