From ecb3f2ffd7dd4aa26213844a023e37fab4057ed0 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 23 Mar 2023 13:55:33 +0000 Subject: rename Tag to Nbt --- azalea-nbt/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'azalea-nbt/src/lib.rs') diff --git a/azalea-nbt/src/lib.rs b/azalea-nbt/src/lib.rs index 3c8aa2cd..b6a7a971 100755 --- a/azalea-nbt/src/lib.rs +++ b/azalea-nbt/src/lib.rs @@ -6,7 +6,7 @@ mod error; mod tag; pub use error::Error; -pub use tag::{NbtCompound, NbtList, Tag}; +pub use tag::{NbtCompound, NbtList, Nbt}; #[cfg(test)] mod tests { @@ -20,25 +20,25 @@ mod tests { #[test] fn mcbuf_nbt() { let mut buf = Vec::new(); - let tag = Tag::Compound(NbtCompound::from_iter(vec![( + let tag = Nbt::Compound(NbtCompound::from_iter(vec![( "hello world".into(), - Tag::Compound(NbtCompound::from_iter(vec![( + Nbt::Compound(NbtCompound::from_iter(vec![( "name".into(), - Tag::String("Bananrama".into()), + Nbt::String("Bananrama".into()), )])), )])); tag.write_into(&mut buf).unwrap(); let mut buf = Cursor::new(&buf[..]); - let result = Tag::read_from(&mut buf).unwrap(); + let result = Nbt::read_from(&mut buf).unwrap(); assert_eq!( result, - Tag::Compound(NbtCompound::from_iter(vec![( + Nbt::Compound(NbtCompound::from_iter(vec![( "hello world".into(), - Tag::Compound(NbtCompound::from_iter(vec![( + Nbt::Compound(NbtCompound::from_iter(vec![( "name".into(), - Tag::String("Bananrama".into()), + Nbt::String("Bananrama".into()), )])), )])) ); -- cgit v1.2.3