diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-09-10 13:57:40 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-09-10 13:58:41 +0200 |
| commit | 9bb10cc90741fada64ec633122835cb821d0c89c (patch) | |
| tree | 214e30403e2dc1b106a06573c338c975e8fc383b /compiler/rustc_mir/src/monomorphize | |
| parent | e11c667e4af17ddebc47df803d6ea641cef7359b (diff) | |
use push(char) instead of push_str(&str) to add single chars to strings
clippy::single-char-push-str
Diffstat (limited to 'compiler/rustc_mir/src/monomorphize')
| -rw-r--r-- | compiler/rustc_mir/src/monomorphize/partitioning/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir/src/monomorphize/partitioning/mod.rs b/compiler/rustc_mir/src/monomorphize/partitioning/mod.rs index e96af77bbb8..0f6f078d968 100644 --- a/compiler/rustc_mir/src/monomorphize/partitioning/mod.rs +++ b/compiler/rustc_mir/src/monomorphize/partitioning/mod.rs @@ -382,7 +382,7 @@ fn collect_and_partition_mono_items<'tcx>( cgus.sort_by_key(|(name, _)| *name); cgus.dedup(); for &(ref cgu_name, (linkage, _)) in cgus.iter() { - output.push_str(" "); + output.push(' '); output.push_str(&cgu_name.as_str()); let linkage_abbrev = match linkage { @@ -399,9 +399,9 @@ fn collect_and_partition_mono_items<'tcx>( Linkage::Common => "Common", }; - output.push_str("["); + output.push('['); output.push_str(linkage_abbrev); - output.push_str("]"); + output.push(']'); } output }) |
