Skip to content

Commit cf5b9cb

Browse files
authored
Merge pull request #1494 from mathstuf/option-unwrap-used-message
methods: fix the option_unwrap_used message
2 parents f2f6637 + 2cdba9c commit cf5b9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ fn lint_unwrap(cx: &LateContext, expr: &hir::Expr, unwrap_args: &[hir::Expr]) {
996996
lint,
997997
expr.span,
998998
&format!("used unwrap() on {} value. If you don't want to handle the {} case gracefully, consider \
999-
using expect() to provide a better panic
999+
using expect() to provide a better panic \
10001000
message",
10011001
kind,
10021002
none_value));

0 commit comments

Comments
 (0)