1
0
Fork 0
mirror of https://github.com/azalea-rs/simdnbt.git synced 2025-08-02 07:26:04 +00:00

Nbt::default

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

View file

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

View file

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