From 23932003d98db0f5f976146aa9a11e5d04a74695 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Dec 2024 05:39:23 +0000 Subject: [PATCH] remove the generic_const_exprs feature since it's unused and to make the rust compiler devs happy --- azalea-core/src/bitset.rs | 5 +---- azalea-core/src/lib.rs | 1 - azalea-inventory/src/slot.rs | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/azalea-core/src/bitset.rs b/azalea-core/src/bitset.rs index de9d00f3..ac698fbc 100755 --- a/azalea-core/src/bitset.rs +++ b/azalea-core/src/bitset.rs @@ -174,10 +174,7 @@ impl AzaleaWrite for FixedBitSet { Ok(()) } } -impl Default for FixedBitSet -where - [u8; N.div_ceil(8)]: Sized, -{ +impl Default for FixedBitSet { fn default() -> Self { Self::new() } diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index 1596a673..acfb560e 100755 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -1,7 +1,6 @@ #![doc = include_str!("../README.md")] #![feature(trait_upcasting)] #![allow(incomplete_features)] -#![feature(generic_const_exprs)] pub mod aabb; pub mod bitset; diff --git a/azalea-inventory/src/slot.rs b/azalea-inventory/src/slot.rs index 568ca441..f541c54d 100644 --- a/azalea-inventory/src/slot.rs +++ b/azalea-inventory/src/slot.rs @@ -172,6 +172,10 @@ impl AzaleaWrite for ItemStack { } } +/// An update to an item's data components. +/// +/// Note that in vanilla items come with their own set of default components, +/// and Azalea does not implement that yet. #[derive(Default)] pub struct DataComponentPatch { components: HashMap>>,