mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-07-25 19:09:22 +02:00
with codegen output
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use genco::{prelude::rust, quote, quote_in};
|
||||
use genco::{prelude::rust, quote};
|
||||
use graphql_introspection_query::introspection_response::{
|
||||
FullType, IntrospectionResponse, Schema,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::{
|
||||
handlers::{scalar::Scalar, DynHandler, Handlers},
|
||||
@@ -47,7 +46,6 @@ impl CodeGeneration {
|
||||
for t in types {
|
||||
if let Some(_) = self.type_name(&t) {
|
||||
let rendered = handler.render(&t)?;
|
||||
|
||||
output.push();
|
||||
output.append(rendered);
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ impl Handler for Scalar {
|
||||
let name = t.name.as_ref().ok_or(eyre::anyhow!("name not found"))?;
|
||||
|
||||
Ok(quote! {
|
||||
pub struct $name (Scalar);
|
||||
pub struct $name(Scalar);
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user