diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-18 23:03:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-18 23:03:07 +0100 |
| commit | ebe35637642fea72759d41f26385e3c59f1b01c0 (patch) | |
| tree | 39f875c94a97bf6b92b19970da170f59de867797 /compiler/rustc_mir_build | |
| parent | 221e71e7a10e43f6e276a349ebad77208169593e (diff) | |
| parent | 3af7df91fcbe4c5197e55dc78838aeb5aa978d89 (diff) | |
| download | rust-ebe35637642fea72759d41f26385e3c59f1b01c0.tar.gz rust-ebe35637642fea72759d41f26385e3c59f1b01c0.zip | |
Rollup merge of #105873 - matthiaskrgr:clippy_fmt, r=Nilstrieb
use &str / String literals instead of format!()
Diffstat (limited to 'compiler/rustc_mir_build')
| -rw-r--r-- | compiler/rustc_mir_build/src/build/custom/parse/instruction.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs b/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs index ecc3e4de8d1..7c39a93a8eb 100644 --- a/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs +++ b/compiler/rustc_mir_build/src/build/custom/parse/instruction.rs @@ -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(), }) }; |
