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

@ -872,7 +872,7 @@ fn lint_get_unwrap(cx: &LateContext, expr: &hir::Expr, get_args: &MethodArgs, is
};
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(
cx,
GET_UNWRAP,