7 ms·
Yeah, but you must know about them and the possible bug first in order to allow them...
by nesarkvechnep 3mo ago
Yeah, but you must know about them and the possible bug first in order to allow them...
- Joker_vD 3mo agoAt which point you wouldn't have written this bug in the first place; or the warnings would trigger immediately, you'd change _ to an actual variable and then remove the warning pragmas because now you don't assign to _.
- Twey 3mo ago`Poll` is marked `#[must_use]` so if you were assigning to something other than `_` you'd get a warning that you're ignoring the `Pending` path. The Clippy lint is only for `_` which Rust considers a use by default.
- Twey 3mo agoHence ‘sadly’. IMNSHO both of these (or at least _untyped) should be enabled by default. Untyped `let _` is too big a footgun during refactorings.
- turboponyy 3mo agoNot really. If I'm using a linter, I go and configure the strictest possible ruleset, and only disable rules when justified on a need-by-need basis. It's just a matter of discipline.