diff options
| author | mat <git@matdoes.dev> | 2025-05-31 08:56:17 +0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-30 19:22:09 -0845 |
| commit | f27c87b291a920376e006a470efb353dee46ed17 (patch) | |
| tree | f1720081b856c5b7b96ab8111e6de4233f884e75 /azalea-inventory/src | |
| parent | e37524899eef8a0034faee35cef4bbf1ba779a7d (diff) | |
| download | azalea-drasl-f27c87b291a920376e006a470efb353dee46ed17.tar.xz | |
more formatting fixes
Diffstat (limited to 'azalea-inventory/src')
| -rw-r--r-- | azalea-inventory/src/components.rs | 4 | ||||
| -rw-r--r-- | azalea-inventory/src/slot.rs | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs index 72216475..0440afe3 100644 --- a/azalea-inventory/src/components.rs +++ b/azalea-inventory/src/components.rs @@ -901,7 +901,9 @@ pub struct DamageResistant { // in the vanilla code this is // ``` // StreamCodec.composite( - // TagKey.streamCodec(Registries.DAMAGE_TYPE), DamageResistant::types, DamageResistant::new + // TagKey.streamCodec(Registries.DAMAGE_TYPE), + // DamageResistant::types, + // DamageResistant::new, // ); // ``` // i'm not entirely sure if this is meant to be a vec or something, i just made it a diff --git a/azalea-inventory/src/slot.rs b/azalea-inventory/src/slot.rs index c48d9488..66f8bf50 100644 --- a/azalea-inventory/src/slot.rs +++ b/azalea-inventory/src/slot.rs @@ -122,14 +122,14 @@ impl ItemStackData { /// # use azalea_inventory::ItemStackData; /// # use azalea_registry::Item; /// let mut a = ItemStackData { - /// kind: Item::Stone, - /// count: 1, - /// components: Default::default(), + /// kind: Item::Stone, + /// count: 1, + /// components: Default::default(), /// }; /// let mut b = ItemStackData { - /// kind: Item::Stone, - /// count: 2, - /// components: Default::default(), + /// kind: Item::Stone, + /// count: 2, + /// components: Default::default(), /// }; /// assert!(a.is_same_item_and_components(&b)); /// |
