Also PathArgument's naming convention
diff --git a/codegen/src/debug.rs b/codegen/src/debug.rs
index 0cda534..92f5dc4 100644
--- a/codegen/src/debug.rs
+++ b/codegen/src/debug.rs
@@ -120,13 +120,10 @@
if fields.len() != 1 {
return None;
}
- let mut outer = outer;
- if outer == "Visibility" {
- outer = "Vis";
- }
+ const WHITELIST: &[&str] = &["PathArguments", "Visibility"];
match &fields[0] {
- Type::Syn(ty) if outer.to_owned() + inner == *ty => Some(ty),
- _ => None
+ Type::Syn(ty) if WHITELIST.contains(&outer) || outer.to_owned() + inner == *ty => Some(ty),
+ _ => None,
}
}