fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
486 B11 linesraw
1error: redundant pattern matching, consider using `is_ok()`
2  --> $DIR/ice-7169.rs:10:12
3   |
4LL |     if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
5   |     -------^^^^^-------------------------------------- help: try: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
6   |
7   = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::redundant_pattern_matching)]`
9
10error: aborting due to previous error
11