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 7c626da commit f175e85Copy full SHA for f175e85
graphql_client_codegen/src/codegen.rs
@@ -167,7 +167,8 @@ fn generate_scalar_definitions<'a, 'schema: 'a>(
167
fn render_derives<'a>(derives: impl Iterator<Item = &'a str>) -> impl quote::ToTokens {
168
let idents = derives.map(|s| {
169
syn::parse_str::<syn::Path>(s)
170
- .expect(format!("couldn't parse {} as a derive Path", s).as_str())
+ .map_err(|e| format!("couldn't parse {} as a derive Path: {}", s, e))
171
+ .unwrap()
172
});
173
174
quote!(#[derive(#(#idents),*)])
0 commit comments