Fix suggestion in get_unwrap lint

This commit is contained in:
Devon Hollowood 2016-11-02 11:48:16 -07:00
parent 6a14dc7fd4
commit e94a4d4666

View file

@ -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 return; // caller is not a type that we want to lint
}; };
let mut_str = if is_mut { "_mut" } else {""}; let mut_str = if is_mut { "_mut" } else { "" };
let borrow_str = if is_mut { "&mut " } else {""}; let borrow_str = if is_mut { "&mut " } else { "&" };
span_lint_and_then( span_lint_and_then(
cx, cx,
GET_UNWRAP, GET_UNWRAP,