diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-07-09 19:11:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 19:11:29 -0500 |
| commit | d1afd02aa84e7b4450c1607277f078eb2a0f1bf3 (patch) | |
| tree | efea9bb7ef7f2064f7c963fd88f394fecec6231b /azalea-block | |
| parent | ea8a8fccb6eb39c97f6cb69e11db5f7d0886172e (diff) | |
| download | azalea-drasl-d1afd02aa84e7b4450c1607277f078eb2a0f1bf3.tar.xz | |
Update to Bevy 0.11 (#94)
* update to bevy 0.11
* clippy
---------
Co-authored-by: mat <git@matdoes.dev>
Diffstat (limited to 'azalea-block')
| -rw-r--r-- | azalea-block/azalea-block-macros/Cargo.toml | 6 | ||||
| -rwxr-xr-x | azalea-block/azalea-block-macros/src/lib.rs | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/azalea-block/azalea-block-macros/Cargo.toml b/azalea-block/azalea-block-macros/Cargo.toml index 80d9a818..16262f12 100644 --- a/azalea-block/azalea-block-macros/Cargo.toml +++ b/azalea-block/azalea-block-macros/Cargo.toml @@ -12,6 +12,6 @@ proc-macro = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -proc-macro2 = "1.0.39" -quote = "1.0.18" -syn = "1.0.95" +proc-macro2 = "1.0.64" +quote = "1.0.29" +syn = "2.0.25" diff --git a/azalea-block/azalea-block-macros/src/lib.rs b/azalea-block/azalea-block-macros/src/lib.rs index 6892987e..c12f7b86 100755 --- a/azalea-block/azalea-block-macros/src/lib.rs +++ b/azalea-block/azalea-block-macros/src/lib.rs @@ -109,7 +109,7 @@ impl Parse for PropertyType { } else { let content; braced!(content in input); - let variants = content.parse_terminated(Ident::parse)?; + let variants = content.parse_terminated(Ident::parse, Token![,])?; Ok(Self::Enum { type_name: keyword, variants, @@ -172,8 +172,8 @@ impl Parse for BlockDefinition { let mut properties_and_defaults = Vec::new(); // read the things comma-separated - let property_and_default_punctuated: Punctuated<PropertyWithNameAndDefault, Token![,]> = - content.parse_terminated(PropertyWithNameAndDefault::parse)?; + let property_and_default_punctuated = + content.parse_terminated(PropertyWithNameAndDefault::parse, Token![,])?; for property_and_default in property_and_default_punctuated { properties_and_defaults.push(property_and_default); @@ -191,8 +191,8 @@ impl Parse for BlockDefinitions { fn parse(input: ParseStream) -> Result<Self> { let mut blocks = Vec::new(); - let block_definitions_punctuated: Punctuated<BlockDefinition, Token![,]> = - input.parse_terminated(BlockDefinition::parse)?; + let block_definitions_punctuated = + input.parse_terminated(BlockDefinition::parse, Token![,])?; for block_definition in block_definitions_punctuated { blocks.push(block_definition); } |
