From 2cdba9cd85c4003407e921cb91a42f4562ef0a7c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 30 Jan 2017 10:44:52 -0500 Subject: [PATCH] methods: fix the option_unwrap_used message It had a hard linewrap in it rather than flowing naturally. This confused the Vim error matching. --- clippy_lints/src/methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/methods.rs b/clippy_lints/src/methods.rs index c6426abd6596..8c77a21e88ca 100644 --- a/clippy_lints/src/methods.rs +++ b/clippy_lints/src/methods.rs @@ -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));