1
0
Fork 0
mirror of https://github.com/azalea-rs/simdnbt.git synced 2025-08-02 23:44:40 +00:00

Nbt::default

This commit is contained in:
mat 2023-11-19 16:24:20 -06:00
commit 878d115b70
2 changed files with 4 additions and 2 deletions

View file

@ -26,9 +26,10 @@ pub struct BaseNbt<'a> {
tag: NbtCompound<'a>, tag: NbtCompound<'a>,
} }
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq, Default)]
pub enum Nbt<'a> { pub enum Nbt<'a> {
Some(BaseNbt<'a>), Some(BaseNbt<'a>),
#[default]
None, None,
} }

View file

@ -27,9 +27,10 @@ pub struct BaseNbt {
tag: NbtCompound, tag: NbtCompound,
} }
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Default)]
pub enum Nbt { pub enum Nbt {
Some(BaseNbt), Some(BaseNbt),
#[default]
None, None,
} }