Remove backticks

This commit is contained in:
Piti the little Light 2020-10-01 18:44:12 +02:00 committed by flip1995
parent 854f2cef06
commit abdb7aeb55
No known key found for this signature in database
GPG Key ID: AFC0354489087877
2 changed files with 3 additions and 3 deletions

View File

@ -3885,7 +3885,7 @@ fn lint_from_iter(cx: &LateContext<'_>, expr: &hir::Expr<'_>, args: &[hir::Expr<
expr.span, expr.span,
"use `.collect()` instead of `::from_iter()`", "use `.collect()` instead of `::from_iter()`",
"consider using", "consider using",
format!("`{}.collect()`", iter_expr), format!("{}.collect()", iter_expr),
Applicability::MaybeIncorrect, Applicability::MaybeIncorrect,
); );
} }

View File

@ -2,7 +2,7 @@ error: use `.collect()` instead of `::from_iter()`
--> $DIR/from_iter_instead_of_collect.rs:8:5 --> $DIR/from_iter_instead_of_collect.rs:8:5
| |
LL | Vec::from_iter(iter_expr); LL | Vec::from_iter(iter_expr);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: ``iter_expr.collect()`` | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `iter_expr.collect()`
| |
= note: `-D clippy::from-iter-instead-of-collect` implied by `-D warnings` = note: `-D clippy::from-iter-instead-of-collect` implied by `-D warnings`
@ -10,7 +10,7 @@ error: use `.collect()` instead of `::from_iter()`
--> $DIR/from_iter_instead_of_collect.rs:10:5 --> $DIR/from_iter_instead_of_collect.rs:10:5
| |
LL | HashMap::<usize, &i8>::from_iter(vec![5, 5, 5, 5].iter().enumerate()); LL | HashMap::<usize, &i8>::from_iter(vec![5, 5, 5, 5].iter().enumerate());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: ``vec![5, 5, 5, 5].iter().enumerate().collect()`` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `vec![5, 5, 5, 5].iter().enumerate().collect()`
error: aborting due to 2 previous errors error: aborting due to 2 previous errors