@@ -1310,7 +1310,7 @@ declare_clippy_lint! {
1310
1310
/// **What it does:** Warns when using push_str with a single-character string literal,
1311
1311
/// and push with a char would work fine.
1312
1312
///
1313
- /// **Why is this bad?** it 's less clear that we are pushing a single character
1313
+ /// **Why is this bad?** It 's less clear that we are pushing a single character
1314
1314
///
1315
1315
/// **Known problems:** None
1316
1316
///
@@ -3154,9 +3154,9 @@ fn lint_chars_last_cmp_with_unwrap<'tcx>(cx: &LateContext<'tcx>, info: &BinaryEx
3154
3154
}
3155
3155
}
3156
3156
3157
- fn get_hint_if_single_char_arg < ' tcx > (
3158
- cx : & LateContext < ' tcx > ,
3159
- arg : & ' tcx hir:: Expr < ' _ > ,
3157
+ fn get_hint_if_single_char_arg (
3158
+ cx : & LateContext < ' _ > ,
3159
+ arg : & hir:: Expr < ' _ > ,
3160
3160
applicability : & mut Applicability ,
3161
3161
) -> Option < String > {
3162
3162
if_chain ! {
@@ -3183,7 +3183,7 @@ fn get_hint_if_single_char_arg<'tcx>(
3183
3183
}
3184
3184
3185
3185
/// lint for length-1 `str`s for methods in `PATTERN_METHODS`
3186
- fn lint_single_char_pattern < ' tcx > ( cx : & LateContext < ' tcx > , _expr : & ' tcx hir:: Expr < ' _ > , arg : & ' tcx hir:: Expr < ' _ > ) {
3186
+ fn lint_single_char_pattern ( cx : & LateContext < ' _ > , _expr : & hir:: Expr < ' _ > , arg : & hir:: Expr < ' _ > ) {
3187
3187
let mut applicability = Applicability :: MachineApplicable ;
3188
3188
if let Some ( hint) = get_hint_if_single_char_arg ( cx, arg, & mut applicability) {
3189
3189
span_lint_and_sugg (
@@ -3199,7 +3199,7 @@ fn lint_single_char_pattern<'tcx>(cx: &LateContext<'tcx>, _expr: &'tcx hir::Expr
3199
3199
}
3200
3200
3201
3201
/// lint for length-1 `str`s as argument for `push_str`
3202
- fn lint_single_char_push_string < ' tcx > ( cx : & LateContext < ' tcx > , expr : & ' tcx hir:: Expr < ' _ > , args : & ' tcx [ hir:: Expr < ' _ > ] ) {
3202
+ fn lint_single_char_push_string ( cx : & LateContext < ' _ > , expr : & hir:: Expr < ' _ > , args : & [ hir:: Expr < ' _ > ] ) {
3203
3203
let mut applicability = Applicability :: MachineApplicable ;
3204
3204
if let Some ( extension_string) = get_hint_if_single_char_arg ( cx, & args[ 1 ] , & mut applicability) {
3205
3205
let base_string_snippet = snippet_with_applicability ( cx, args[ 0 ] . span , "_" , & mut applicability) ;
0 commit comments