We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#![deny(clippy::match_same_arms)] #[derive(PartialEq, PartialOrd, Eq, Ord)] pub enum CommandInfo { BuiltIn { name: String, about: Option<String> }, External { name: String, path: std::path::PathBuf }, } impl CommandInfo { pub fn name(&self) -> String { match self { CommandInfo::BuiltIn { name, .. } => name.to_string(), CommandInfo::External { name, .. } => name.to_string(), } } } fn main() {}
This used to trigger back on June 3rd but no longer does in July 1st (clippy 0.0.212 (e3cb40e 2019-06-25))
clippy 0.0.212 (e3cb40e 2019-06-25)
Looks like a false negative to me?
EDIT(@flip1995): Playground
EDIT(matthiaskrgr): code is from cargo 0.35.0
The text was updated successfully, but these errors were encountered:
match_same_arms
Auto merge of #4246 - mikerite:fix-4244, r=flip1995
be3d6cf
Fix `match_same_arms` false negative Closes #4244 changelog: Fix `match_same_arms` false negative
Successfully merging a pull request may close this issue.
This used to trigger back on June 3rd but no longer does in July 1st (
clippy 0.0.212 (e3cb40e 2019-06-25)
)Looks like a false negative to me?
EDIT(@flip1995): Playground
EDIT(matthiaskrgr): code is from cargo 0.35.0
The text was updated successfully, but these errors were encountered: