diff options
| author | mat <github@matdoes.dev> | 2022-06-25 02:33:28 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-25 02:33:28 -0500 |
| commit | cd9a05e5a62190b3d4a2a733bf637d6324aec5fd (patch) | |
| tree | 15fb360678dfb5e8d81330144b810735b73f6ef4 /azalea-core/src/resource_location.rs | |
| parent | c9faf25fab4f89319731fec87ad4d2cf45864632 (diff) | |
| download | azalea-drasl-cd9a05e5a62190b3d4a2a733bf637d6324aec5fd.tar.xz | |
read_into -> read_from
yeah
Diffstat (limited to 'azalea-core/src/resource_location.rs')
| -rwxr-xr-x | azalea-core/src/resource_location.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-core/src/resource_location.rs b/azalea-core/src/resource_location.rs index acca0c58..945b6d80 100755 --- a/azalea-core/src/resource_location.rs +++ b/azalea-core/src/resource_location.rs @@ -46,8 +46,8 @@ impl std::fmt::Debug for ResourceLocation { } impl McBufReadable for ResourceLocation { - fn read_into(buf: &mut impl Read) -> Result<Self, String> { - let location_string = String::read_into(buf)?; + fn read_from(buf: &mut impl Read) -> Result<Self, String> { + let location_string = String::read_from(buf)?; ResourceLocation::new(&location_string) } } @@ -99,7 +99,7 @@ mod tests { let mut buf = Cursor::new(buf); assert_eq!( - ResourceLocation::read_into(&mut buf).unwrap(), + ResourceLocation::read_from(&mut buf).unwrap(), ResourceLocation::new("minecraft:dirt").unwrap() ); } |
