diff options
Diffstat (limited to 'azalea-nbt/src/lib.rs')
| -rwxr-xr-x | azalea-nbt/src/lib.rs | 16 |
1 files changed, 8 insertions, 8 deletions
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()), )])), )])) ); |
