]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/matches/match_wild_err_arm.rs
Rollup merge of #101672 - idigdoug:array_try_into, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / clippy_lints / src / matches / match_wild_err_arm.rs
index bc16f17b6196e420184860ce3dd731f9eeeebdbe..a3aa2e4b389afe74f1e40f96da6fb5ea4eab66c9 100644 (file)
@@ -40,7 +40,7 @@ pub(crate) fn check<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms: &[Arm<'
                                 arm.pat.span,
                                 &format!("`Err({})` matches all errors", ident_bind_name),
                                 None,
-                                "match each error separately or use the error output, or use `.except(msg)` if the error case is unreachable",
+                                "match each error separately or use the error output, or use `.expect(msg)` if the error case is unreachable",
                             );
                         }
                     }