diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-13 22:51:34 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-13 22:51:34 +0200 |
| commit | 7c2d57e0fa1615d993a4b4166163fb0b3ec7d395 (patch) | |
| tree | 61a9e097c0b58ae572ad2dbed78e73c5b67d8b91 /compiler/rustc_errors | |
| parent | 0d13f6afeba4935499abe0c9a07426c94492c94e (diff) | |
| download | rust-7c2d57e0fa1615d993a4b4166163fb0b3ec7d395.tar.gz rust-7c2d57e0fa1615d993a4b4166163fb0b3ec7d395.zip | |
couple of clippy::complexity fixes
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index ecb3cdd627c..9cd072c8b4c 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -832,7 +832,7 @@ impl Diagnostic { name: impl Into<Cow<'static, str>>, arg: DiagnosticArgValue<'static>, ) -> &mut Self { - self.args.push((name.into(), arg.into())); + self.args.push((name.into(), arg)); self } |
