fix code
This commit is contained in:
parent
ba80d45b3c
commit
1a2364e534
@ -2404,8 +2404,12 @@ fn check_methods<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, msrv: Optio
|
|||||||
},
|
},
|
||||||
("unwrap", []) => {
|
("unwrap", []) => {
|
||||||
match method_call(recv) {
|
match method_call(recv) {
|
||||||
Some(("get", [recv, get_arg], _)) => get_unwrap::check(cx, expr, recv, get_arg, false),
|
Some(("get", [recv, get_arg], _)) => {
|
||||||
Some(("get_mut", [recv, get_arg], _)) => get_unwrap::check(cx, expr, recv, get_arg, true),
|
get_unwrap::check(cx, expr, recv, get_arg, false);
|
||||||
|
},
|
||||||
|
Some(("get_mut", [recv, get_arg], _)) => {
|
||||||
|
get_unwrap::check(cx, expr, recv, get_arg, true);
|
||||||
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
}
|
||||||
unwrap_used::check(cx, expr, recv);
|
unwrap_used::check(cx, expr, recv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user