]> git.lizzy.rs Git - rust.git/commitdiff
methods: fix the option_unwrap_used message
authorBen Boeckel <ben.boeckel@kitware.com>
Mon, 30 Jan 2017 15:44:52 +0000 (10:44 -0500)
committerBen Boeckel <ben.boeckel@kitware.com>
Mon, 30 Jan 2017 15:44:52 +0000 (10:44 -0500)
It had a hard linewrap in it rather than flowing naturally. This
confused the Vim error matching.

clippy_lints/src/methods.rs

index c6426abd65965cfd8e7273939cd8e612a43f6c2e..8c77a21e88ca7eb415c7ea0d51327f04a5874aac 100644 (file)
@@ -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));