about summary refs log tree commit diff
path: root/clippy_lints
diff options
context:
space:
mode:
authorMax Baumann <max@bmn.dev>2022-03-20 23:43:17 +0100
committerMax Baumann <max@bmn.dev>2022-03-20 23:43:17 +0100
commit0f83753934b84efb6b3263270f625f0f44c208f2 (patch)
treec20f965d75152ea8d60f59ff94eb50ff6556ee11 /clippy_lints
parent20c352a4f602d541920fe1745b117fc8b42ca8fc (diff)
downloadrust-0f83753934b84efb6b3263270f625f0f44c208f2.tar.gz
rust-0f83753934b84efb6b3263270f625f0f44c208f2.zip
feat: change error message
Diffstat (limited to 'clippy_lints')
-rw-r--r--clippy_lints/src/methods/or_then_unwrap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/or_then_unwrap.rs b/clippy_lints/src/methods/or_then_unwrap.rs
index 4e2dcf67231..a0f6d80c19b 100644
--- a/clippy_lints/src/methods/or_then_unwrap.rs
+++ b/clippy_lints/src/methods/or_then_unwrap.rs
@@ -21,14 +21,14 @@ pub(super) fn check<'tcx>(
     let or_arg_content: Span;
 
     if is_type_diagnostic_item(cx, ty, sym::Option) {
-        title = ".or(Some(…)).unwrap() found";
+        title = "found `.or(Some(…)).unwrap()`";
         if let Some(content) = get_content_if_is(or_arg, "Some") {
             or_arg_content = content;
         } else {
             return;
         }
     } else if is_type_diagnostic_item(cx, ty, sym::Result) {
-        title = ".or(Ok(…)).unwrap() found";
+        title = "found `.or(Ok(…)).unwrap()`";
         if let Some(content) = get_content_if_is(or_arg, "Ok") {
             or_arg_content = content;
         } else {