about summary refs log tree commit diff
path: root/clippy_lints/src/methods/utils.rs
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2021-12-30 15:10:43 +0100
committerflip1995 <philipp.krones@embecosm.com>2021-12-30 15:10:43 +0100
commit97ab44ca974544fdf5ef598b04d3794af513e4bf (patch)
treee06a2293ddb5d4a895594580f6303d1e530b274f /clippy_lints/src/methods/utils.rs
parent01217f6f4c752700754e8e66eb02d763c4c55c72 (diff)
downloadrust-97ab44ca974544fdf5ef598b04d3794af513e4bf.tar.gz
rust-97ab44ca974544fdf5ef598b04d3794af513e4bf.zip
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
Diffstat (limited to 'clippy_lints/src/methods/utils.rs')
-rw-r--r--clippy_lints/src/methods/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/utils.rs b/clippy_lints/src/methods/utils.rs
index 11ad881ee7b..24b44f819f4 100644
--- a/clippy_lints/src/methods/utils.rs
+++ b/clippy_lints/src/methods/utils.rs
@@ -57,7 +57,7 @@ pub(super) fn get_hint_if_single_char_arg(
         let string = r.as_str();
         if string.chars().count() == 1;
         then {
-            let snip = snippet_with_applicability(cx, arg.span, &string, applicability);
+            let snip = snippet_with_applicability(cx, arg.span, string, applicability);
             let ch = if let ast::StrStyle::Raw(nhash) = style {
                 let nhash = nhash as usize;
                 // for raw string: r##"a"##