From 0c6730d85133598e95c534bf1d514b941aa65299 Mon Sep 17 00:00:00 2001 From: Fabian Zaiser Date: Fri, 8 Jun 2018 18:25:31 +0200 Subject: [PATCH] Update known problems. --- clippy_lints/src/unwrap.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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