Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas0008 committed Oct 19, 2024
1 parent 7300bda commit 78d6069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pumpkin-macros/src/block_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub fn block_state_impl(item: TokenStream) -> TokenStream {
let category_name: proc_macro2::TokenStream = format!(
"crate::block::BlockCategory::{}",
&pascal_case(
&block_info
block_info
.definition
.category
.split_once(':')
Expand All @@ -254,7 +254,7 @@ pub fn block_state_impl(item: TokenStream) -> TokenStream {
.unwrap();
let block_name: proc_macro2::TokenStream = format!(
"crate::block::Block::{}",
&pascal_case(&block_name.split_once(':').expect("Bad minecraft id").1,)
&pascal_case(block_name.split_once(':').expect("Bad minecraft id").1,)
)
.parse()
.unwrap();
Expand All @@ -270,7 +270,7 @@ pub fn block_state_impl(item: TokenStream) -> TokenStream {
let category_name: proc_macro2::TokenStream = format!(
"pumpkin_world::block::BlockCategory::{}",
&pascal_case(
&block_info
block_info
.definition
.category
.split_once(':')
Expand All @@ -282,7 +282,7 @@ pub fn block_state_impl(item: TokenStream) -> TokenStream {
.unwrap();
let block_name: proc_macro2::TokenStream = format!(
"pumpkin_world::block::Block::{}",
&pascal_case(&block_name.split_once(':').expect("Bad minecraft id").1,)
&pascal_case(block_name.split_once(':').expect("Bad minecraft id").1,)
)
.parse()
.unwrap();
Expand Down

0 comments on commit 78d6069

Please sign in to comment.