use &str / String literals instead of format!()
This commit is contained in:
parent
35a99eef32
commit
3af7df91fc
19 changed files with 37 additions and 55 deletions
|
@ -76,7 +76,7 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
|
|||
let Some((otherwise, rest)) = arms.split_last() else {
|
||||
return Err(ParseError {
|
||||
span,
|
||||
item_description: format!("no arms"),
|
||||
item_description: "no arms".to_string(),
|
||||
expected: "at least one arm".to_string(),
|
||||
})
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue