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_codegen_ssa/src/debuginfo | |
| parent | e11c667e4af17ddebc47df803d6ea641cef7359b (diff) | |
| download | rust-9bb10cc90741fada64ec633122835cb821d0c89c.tar.gz rust-9bb10cc90741fada64ec633122835cb821d0c89c.zip | |
use push(char) instead of push_str(&str) to add single chars to strings
clippy::single-char-push-str
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 54e5d4d00f6..0c0f1bc681c 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -37,7 +37,7 @@ pub fn push_debuginfo_type_name<'tcx>( ty::Bool => output.push_str("bool"), ty::Char => output.push_str("char"), ty::Str => output.push_str("str"), - ty::Never => output.push_str("!"), + ty::Never => output.push('!'), ty::Int(int_ty) => output.push_str(int_ty.name_str()), ty::Uint(uint_ty) => output.push_str(uint_ty.name_str()), ty::Float(float_ty) => output.push_str(float_ty.name_str()), |
