mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Merge pull request #1494 from mathstuf/option-unwrap-used-message
methods: fix the option_unwrap_used message
This commit is contained in:
commit
cf5b9cb308
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue