diff options
Diffstat (limited to 'azalea-nbt/src')
| -rwxr-xr-x | azalea-nbt/src/decode.rs | 2 | ||||
| -rwxr-xr-x | azalea-nbt/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-nbt/src/decode.rs b/azalea-nbt/src/decode.rs index 1c011839..5f0e8fd2 100755 --- a/azalea-nbt/src/decode.rs +++ b/azalea-nbt/src/decode.rs @@ -139,7 +139,7 @@ impl Tag { } impl McBufReadable for Tag { - fn read_into(buf: &mut impl Read) -> Result<Self, String> { + fn read_from(buf: &mut impl Read) -> Result<Self, String> { match Tag::read(buf) { Ok(r) => Ok(r), // Err(e) => Err(e.to_string()), diff --git a/azalea-nbt/src/lib.rs b/azalea-nbt/src/lib.rs index cb2eb28e..75232eb0 100755 --- a/azalea-nbt/src/lib.rs +++ b/azalea-nbt/src/lib.rs @@ -26,7 +26,7 @@ mod tests { let mut buf = Cursor::new(buf); - let result = Tag::read_into(&mut buf).unwrap(); + let result = Tag::read_from(&mut buf).unwrap(); assert_eq!( result, Tag::Compound(HashMap::from_iter(vec