diff --git a/clippy_lints/src/unwrap.rs b/clippy_lints/src/unwrap.rs index 8c11f027db61..3694c48a39fd 100644 --- a/clippy_lints/src/unwrap.rs +++ b/clippy_lints/src/unwrap.rs @@ -36,7 +36,8 @@ declare_clippy_lint! { /// /// **Why is this bad?** If panicking is desired, an explicit `panic!()` should be used. /// -/// **Known problems:** None. +/// **Known problems:** This lint only checks `if` conditions not assignments. +/// So something like `let x: Option<()> = None; x.unwrap();` will not be recognized. /// /// **Example:** /// ```rust