From cd9a05e5a62190b3d4a2a733bf637d6324aec5fd Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 25 Jun 2022 02:33:28 -0500 Subject: read_into -> read_from yeah --- azalea-protocol/src/packets/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets/mod.rs') diff --git a/azalea-protocol/src/packets/mod.rs b/azalea-protocol/src/packets/mod.rs index 1c2533e2..2f439cd5 100755 --- a/azalea-protocol/src/packets/mod.rs +++ b/azalea-protocol/src/packets/mod.rs @@ -51,7 +51,7 @@ where } impl azalea_buf::McBufReadable for ConnectionProtocol { - fn read_into(buf: &mut impl Read) -> Result { + fn read_from(buf: &mut impl Read) -> Result { ConnectionProtocol::from_i32(buf.read_varint()?) .ok_or_else(|| "Invalid intention".to_string()) } -- cgit v1.2.3