You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
154: Work around an eager clippy warning r=nikomatsakis a=lqd
As seen in #152 (comment) and #153 (comment), it seems a recent nightly has introduced a false positive in the `needless_match` lint, causing CI to fail as it denies warnings.
Just for reference, it looks side-effects in branches are missed, and thought to be replaceable by the matched Option.
```rust
pub fn side_effect() -> Option<String> {
if let Some(r) = op() {
Some(r)
} else {
println!("side-effect");
None
}
}
```
We could ignore the lint, much like other lints are sometimes ignored, or work around it like this PR. Which do you prefer ?
Co-authored-by: Rémy Rakic <[email protected]>
0 commit comments