- Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing
Description
#![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)
)
Looks like a false negative to me?
EDIT(@flip1995): Playground
EDIT(matthiaskrgr): code is from cargo 0.35.0
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing