We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 049ab82 commit 449d68dCopy full SHA for 449d68d
clippy_lints/src/vec.rs
@@ -63,13 +63,7 @@ impl<'tcx> LateLintPass<'tcx> for UselessVec {
63
if is_copy(cx, vec_type(cx.typeck_results().expr_ty_adjusted(arg)));
64
then {
65
// report the error around the `vec!` not inside `<std macros>:`
66
- let span = arg.span
67
- .ctxt()
68
- .outer_expn_data()
69
- .call_site
70
71
72
- .call_site;
+ let span = arg.span.ctxt().outer_expn_data().call_site;
73
self.check_vec_macro(cx, &vec_args, Mutability::Not, span);
74
}
75
0 commit comments