We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef5b9a commit 6af6808Copy full SHA for 6af6808
clippy_lints/src/manual_option_folding.rs
@@ -24,7 +24,7 @@ declare_clippy_lint! {
24
/// Use instead:
25
/// ```rust
26
/// let opt: Option<i32> = None;
27
- /// let res: i32 = foo().unwrap_or(42);
+ /// let res: i32 = opt.unwrap_or(42);
28
/// ```
29
#[clippy::version = "1.74.0"]
30
pub MANUAL_OPTION_FOLDING,
0 commit comments