From 509838bb08e849d4064d8f9f474d7435c490cc71 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Sat, 15 Feb 2025 00:03:05 +0100 Subject: [PATCH] fix: remove typo in duplicate key error The message previously contained "at line", but we don't have a way of knowing the line number so there was nothing after that. This commit removes the "at line" part of the message. --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index cb32884..c59a254 100644 --- a/src/util.rs +++ b/src/util.rs @@ -172,7 +172,7 @@ where while let Some((key, value)) = access.next_entry()? { if map.contains_key(&key) { return Err(serde::de::Error::custom(format!( - "duplicate key `{key}` at line" + "duplicate key `{key}`" ))); }