Search
Items tagged with: clippy
A couple of month ago, I opened an issue suggesting a new Clippy lint for rust. (Recommending against using try_into() when into() is available.
Someone implemented it and it recently reached stable with 1.76, I'm surprised at how many times this lint triggered in our codebases 😅.
I guess that means that this lint is useful!
github.com/rust-lang/rust-clip…
new lint: `unnecessary_faillible_conversion` · Issue #11577 · rust-lang/rust-clippy
What it does This lint would warn against using try_into from the TryInto or TryFrom trait when there is an available Into or From implementation. Advantage Remove the need for handling an error ca...GitHub