mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
Fix suggestion in get_unwrap
lint
This commit is contained in:
parent
6a14dc7fd4
commit
e94a4d4666
1 changed files with 2 additions and 2 deletions
|
@ -871,8 +871,8 @@ fn lint_get_unwrap(cx: &LateContext, expr: &hir::Expr, get_args: &MethodArgs, is
|
|||
return; // caller is not a type that we want to lint
|
||||
};
|
||||
|
||||
let mut_str = if is_mut { "_mut" } else {""};
|
||||
let borrow_str = if is_mut { "&mut " } else {""};
|
||||
let mut_str = if is_mut { "_mut" } else { "" };
|
||||
let borrow_str = if is_mut { "&mut " } else { "&" };
|
||||
span_lint_and_then(
|
||||
cx,
|
||||
GET_UNWRAP,
|
||||
|
|
Loading…
Reference in a new issue