Skip to content

Commit 64cec7a

Browse files
committed
rustfmt
1 parent c51e866 commit 64cec7a

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

graphql_query_derive/src/inputs.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ impl ::std::convert::From<graphql_parser::schema::InputObjectType> for GqlInput
5959
type_: field.value_type.into(),
6060
};
6161
(name, field)
62-
})
63-
.collect(),
62+
}).collect(),
6463
}
6564
}
6665
}
@@ -87,8 +86,7 @@ impl ::std::convert::From<introspection_response::FullType> for GqlInput {
8786
.into(),
8887
};
8988
(name, field)
90-
})
91-
.collect(),
89+
}).collect(),
9290
}
9391
}
9492
}
@@ -136,7 +134,7 @@ mod tests {
136134
},
137135
),
138136
].into_iter()
139-
.collect(),
137+
.collect(),
140138
};
141139

142140
let expected: String = vec![
@@ -148,7 +146,7 @@ mod tests {
148146
"pub requirements : Option < CatRequirements > , ",
149147
"}",
150148
].into_iter()
151-
.collect();
149+
.collect();
152150

153151
let mut context = QueryContext::new_empty();
154152
context.schema.inputs.insert(cat.name.clone(), cat);

graphql_query_derive/src/shared.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ pub(crate) fn field_impls_for_selection(
5959
} else {
6060
Ok(quote!())
6161
}
62-
})
63-
.collect()
62+
}).collect()
6463
}
6564

6665
pub(crate) fn response_fields_for_selection(
@@ -103,6 +102,5 @@ pub(crate) fn response_fields_for_selection(
103102
SelectionItem::InlineFragment(_) => {
104103
Err(format_err!("inline fragment on object field"))?
105104
}
106-
})
107-
.collect()
105+
}).collect()
108106
}

graphql_query_derive/src/unions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ pub struct GqlUnion {
1616
enum UnionError {
1717
#[fail(display = "Unknown type: {}", ty)]
1818
UnknownType { ty: String },
19-
#[fail(display = "Missing __typename in selection for {}", union_name)]
19+
#[fail(
20+
display = "Missing __typename in selection for {}",
21+
union_name
22+
)]
2023
MissingTypename { union_name: String },
2124
}
2225

0 commit comments

Comments
 (0)