We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2a6be commit c1a4ebeCopy full SHA for c1a4ebe
src/graphql.rs
@@ -1130,10 +1130,12 @@ impl FilterTypeType {
1130
match &self.entity {
1131
FilterableType::Scalar(s) => s.name().expect("scalar name should exist"),
1132
FilterableType::Enum(e) => e.name().expect("enum type name should exist"),
1133
- FilterableType::List(l) => match l.of_type().unwrap().name() {
1134
- None => panic!("inner list type name should exist"),
1135
- Some(name) => format!("{}List", name)
1136
- },
+ FilterableType::List(l) => format!(
+ "{}List",
+ l.of_type()
+ .expect("inner list type should exist")
1137
+ .name()
1138
+ .expect("inner list type name should exist"))
1139
}
1140
1141
0 commit comments