We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3343a65 commit b925925Copy full SHA for b925925
clean/mod.rs
@@ -2554,7 +2554,7 @@ fn name_from_pat(p: &hir::Pat) -> String {
2554
match p.node {
2555
PatKind::Wild => "_".to_string(),
2556
PatKind::Ident(_, ref p, _) => p.node.to_string(),
2557
- PatKind::Enum(ref p, _) => path_to_string(p),
+ PatKind::TupleStruct(ref p, _) | PatKind::Path(ref p) => path_to_string(p),
2558
PatKind::QPath(..) => panic!("tried to get argument name from PatKind::QPath, \
2559
which is not allowed in function arguments"),
2560
PatKind::Struct(ref name, ref fields, etc) => {
0 commit comments