diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2021-12-30 14:04:13 +0100 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2021-12-30 14:17:53 +0100 |
| commit | e45842e3602e806345b3355ed0955e604daef49c (patch) | |
| tree | db4d1481f0b49bae4bdeedea435b5cfc0ceb6e38 /clippy_lints/src/methods/utils.rs | |
| parent | 01217f6f4c752700754e8e66eb02d763c4c55c72 (diff) | |
| parent | c1cd64b9c6b29ed2a577fc174a50c76267a966e2 (diff) | |
| download | rust-e45842e3602e806345b3355ed0955e604daef49c.tar.gz rust-e45842e3602e806345b3355ed0955e604daef49c.zip | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/methods/utils.rs')
| -rw-r--r-- | clippy_lints/src/methods/utils.rs | 2 |
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"## |
