Remove unused qualifications
This commit is contained in:
parent
b45745e905
commit
26f539eaa3
3 changed files with 9 additions and 9 deletions
|
@ -60,7 +60,7 @@ fn check_arguments(cx: &LateContext, arguments: &[P<Expr>], type_definition: &Ty
|
|||
match parameter.sty {
|
||||
TypeVariants::TyRef(_, TypeAndMut {ty: _, mutbl: MutImmutable}) |
|
||||
TypeVariants::TyRawPtr(TypeAndMut {ty: _, mutbl: MutImmutable}) => {
|
||||
if let Expr_::ExprAddrOf(MutMutable, _) = argument.node {
|
||||
if let ExprAddrOf(MutMutable, _) = argument.node {
|
||||
span_lint(cx, UNNECESSARY_MUT_PASSED,
|
||||
argument.span, &format!("The function/method \"{}\" \
|
||||
doesn't need a mutable reference",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue