mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-10 22:00:55 +01:00
chore: fix formatting
This commit is contained in:
parent
509838bb08
commit
ff6449a340
1 changed files with 1 additions and 3 deletions
|
@ -171,9 +171,7 @@ where
|
||||||
|
|
||||||
while let Some((key, value)) = access.next_entry()? {
|
while let Some((key, value)) = access.next_entry()? {
|
||||||
if map.contains_key(&key) {
|
if map.contains_key(&key) {
|
||||||
return Err(serde::de::Error::custom(format!(
|
return Err(serde::de::Error::custom(format!("duplicate key `{key}`")));
|
||||||
"duplicate key `{key}`"
|
|
||||||
)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
map.insert(key, value);
|
map.insert(key, value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue