Skip to content

Commit

Permalink
remove the generic_const_exprs feature since it's unused and to make …
Browse files Browse the repository at this point in the history
…the rust compiler devs happy
  • Loading branch information
mat-1 committed Dec 11, 2024
1 parent f4a1869 commit 2393200
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions azalea-core/src/bitset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,7 @@ impl<const N: usize> AzaleaWrite for FixedBitSet<N> {
Ok(())
}
}
impl<const N: usize> Default for FixedBitSet<N>
where
[u8; N.div_ceil(8)]: Sized,
{
impl<const N: usize> Default for FixedBitSet<N> {
fn default() -> Self {
Self::new()
}
Expand Down
1 change: 0 additions & 1 deletion azalea-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions azalea-inventory/src/slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<DataComponentKind, Option<Box<dyn components::EncodableDataComponent>>>,
Expand Down

0 comments on commit 2393200

Please sign in to comment.