1
Fork 0

remove redundant clones

This commit is contained in:
Matthias Krüger 2023-02-10 18:08:25 +01:00
parent d1ac43a9b9
commit 5201bb53bb
3 changed files with 3 additions and 5 deletions

View file

@ -847,9 +847,7 @@ impl<'a> Parser<'a> {
0,
ParseError {
description: "expected format parameter to occur after `:`".to_owned(),
note: Some(
format!("`?` comes after `:`, try `{}:{}` instead", word, "?").to_owned(),
),
note: Some(format!("`?` comes after `:`, try `{}:{}` instead", word, "?")),
label: "expected `?` to occur after `:`".to_owned(),
span: pos.to(pos),
secondary_label: None,