Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bluejay-typegen-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description = "Code generation utilities for `bluejay-typegen-macro`"
bluejay-core = { workspace = true }
bluejay-parser = { workspace = true, features = ["format-errors"] }
bluejay-validator = { workspace = true }
syn = { version = "2.0", features = ["full"] }
syn = { version = "3.0", features = ["full"] }
quote = "1.0"
proc-macro2 = "1.0"
convert_case = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion bluejay-typegen-codegen/src/enum_type_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'a, S: SchemaDefinition, C: CodeGenerator> EnumTypeDefinitionBuilder<'a, S,
.code_generator
.additional_impls_for_enum(instance.enum_type_definition)
.into_iter()
.map(Into::into),
.map(syn::Item::Impl),
);

items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<'a, C: CodeGenerator> ExecutableEnumBuilder<'a, C> {
.code_generator
.additional_impls_for_executable_enum(instance.executable_enum)
.into_iter()
.map(Into::into),
.map(syn::Item::Impl),
);

items.extend(instance.nested_module());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<'a, C: CodeGenerator> ExecutableStructBuilder<'a, C> {
.code_generator
.additional_impls_for_executable_struct(instance.executable_struct)
.into_iter()
.map(Into::into),
.map(syn::Item::Impl),
);

items.extend(instance.nested_module());
Expand Down
4 changes: 2 additions & 2 deletions bluejay-typegen-codegen/src/input_object_type_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl<'a, S: SchemaDefinition, C: CodeGenerator> InputObjectTypeDefinitionBuilder
.code_generator()
.additional_impls_for_one_of_input_object(self.input_object_type_definition)
.into_iter()
.map(Into::into),
.map(syn::Item::Impl),
);

items
Expand Down Expand Up @@ -128,7 +128,7 @@ impl<'a, S: SchemaDefinition, C: CodeGenerator> InputObjectTypeDefinitionBuilder
.code_generator()
.additional_impls_for_input_object(self.input_object_type_definition)
.into_iter()
.map(Into::into),
.map(syn::Item::Impl),
);

items
Expand Down
4 changes: 2 additions & 2 deletions bluejay-typegen-codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fn custom_scalar_borrows(
pub type #ident #lifetime = #ty;
};
if let Some((_, items)) = module.content.as_mut() {
items.push(alias.into());
items.push(syn::Item::Type(alias));
}
custom_scalars.insert(
name,
Expand Down Expand Up @@ -329,7 +329,7 @@ fn process_module_item<S: SchemaDefinition, C: CodeGenerator>(
)?;
module.content = Some((syn::token::Brace::default(), items));
module.attrs = Vec::new();
Ok(module.into())
Ok(syn::Item::Mod(module))
} else {
Err(syn::Error::new(
list.delimiter.span().open(),
Expand Down
2 changes: 1 addition & 1 deletion bluejay-typegen-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "Macros for `bluejay-typegen`"
[dependencies]
bluejay-core = { workspace = true }
bluejay-typegen-codegen = { workspace = true }
syn = { version = "2.0", features = ["full"] }
syn = { version = "3.0", features = ["full"] }
quote = "1.0"
proc-macro2 = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion bluejay-typegen-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl CodeGenerator for SerdeCodeGenerator {

let fields_named: syn::FieldsNamed = parse_quote! { { #(#fields,)* } };

fields_named.into()
syn::Fields::Named(fields_named)
}

fn attributes_for_executable_enum(
Expand Down
Loading