Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
This commit is contained in:
@@ -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"##
|
||||
|
||||
Reference in New Issue
Block a user