summaryrefslogtreecommitdiff
path: root/src/syntax/parser.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-19 17:51:33 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-19 17:51:33 +0200
commitf08ae95b9d8be5165f9c8cac4c755d0510c3a18a (patch)
treecc4bdf617618535d128e1a5611f270c8a99df31f /src/syntax/parser.rs
parent5a6330dbfce9ed30c77502b66db843fd72b2d267 (diff)
Fix argument sinks
Fixes #886.
Diffstat (limited to 'src/syntax/parser.rs')
-rw-r--r--src/syntax/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/parser.rs b/src/syntax/parser.rs
index 4bc25a30..801fdfc8 100644
--- a/src/syntax/parser.rs
+++ b/src/syntax/parser.rs
@@ -1047,7 +1047,7 @@ fn validate_dict(p: &mut Parser, m: Marker) {
};
if !used.insert(key.clone()) {
- first.convert_to_error(eco_format!("duplicate key: {}", key));
+ first.convert_to_error(eco_format!("duplicate key: {key}"));
child.make_erroneous();
}
}