Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Outspending committed Jan 5, 2025
1 parent 4a59780 commit 14788fb
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/lib/derive_macros/src/inventory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ pub fn create(input: TokenStream) -> TokenStream {
}

// Generate the `new` method
let new_method = inventory_type_expr.map(|expr| quote! {
let new_method = inventory_type_expr.map(|expr| {
quote! {
pub fn new(id: u8) -> Self {
Self {
inventory: #net_crate::builder::InventoryBuilder::new(id)
Expand All @@ -115,7 +116,8 @@ pub fn create(input: TokenStream) -> TokenStream {
#(#default_statements)*
}
}
});
}
});

// Generate the complete implementation block
// Wacky ass code because rust is retarded
Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/anvil.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/beacon.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use ferrumc_macros::{Inventory, inventory_type};

use crate::inventory::Inventory;
Expand Down
1 change: 1 addition & 0 deletions src/lib/inventory/src/types/cartography.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![warn(dead_code)]
use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/enchanting.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use ferrumc_macros::{Inventory, inventory_type};

use crate::inventory::Inventory;
Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/furnace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/grindstone.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/loom.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down
14 changes: 7 additions & 7 deletions src/lib/inventory/src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod anvil;
pub mod anvil;
pub mod beacon;
mod cartography;
pub mod cartography;
pub mod enchanting;
mod furnace;
mod grindstone;
mod loom;
pub mod furnace;
pub mod grindstone;
pub mod loom;
pub mod player;
mod smithing_table;
mod stonecutter;
pub mod smithing_table;
pub mod stonecutter;
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/smithing_table.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down
2 changes: 2 additions & 0 deletions src/lib/inventory/src/types/stonecutter.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(dead_code)]

use crate::inventory::Inventory;
use ferrumc_macros::{Inventory, inventory_type};

Expand Down

0 comments on commit 14788fb

Please sign in to comment.