Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup

This commit is contained in:
flip1995
2021-12-30 15:10:43 +01:00
parent 01217f6f4c
commit 97ab44ca97
80 changed files with 1573 additions and 519 deletions

View File

@@ -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"##