mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
methods: fix the option_unwrap_used message
It had a hard linewrap in it rather than flowing naturally. This confused the Vim error matching.
This commit is contained in:
parent
f2f6637dda
commit
2cdba9cd85
@ -996,7 +996,7 @@ fn lint_unwrap(cx: &LateContext, expr: &hir::Expr, unwrap_args: &[hir::Expr]) {
|
||||
lint,
|
||||
expr.span,
|
||||
&format!("used unwrap() on {} value. If you don't want to handle the {} case gracefully, consider \
|
||||
using expect() to provide a better panic
|
||||
using expect() to provide a better panic \
|
||||
message",
|
||||
kind,
|
||||
none_value));
|
||||
|
Loading…
Reference in New Issue
Block a user