Skip to content

Commit 1a8771e

Browse files
committed
Use 'vec' instead of 'x' for default message
1 parent d15838c commit 1a8771e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/use_last.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UseLast {
7878

7979
let mut applicability = Applicability::MachineApplicable;
8080
let vec_name = snippet_with_applicability(
81-
cx, struct_calling_on.span, "x", &mut applicability);
81+
cx, struct_calling_on.span, "vec", &mut applicability);
8282

8383
then {
8484
span_lint_and_sugg(

0 commit comments

Comments
 (0)