Remove self

This commit is contained in:
Vladislav Golub 2019-11-10 02:24:38 +03:00
parent c2348e7340
commit 824061e9a9

View File

@ -21,7 +21,7 @@ impl StatusServerBoundPacket {
} }
} }
pub fn decode<R: Read>(&self, type_id: u8, reader: &mut R) -> Result<Self, DecodePacketError> { pub fn decode<R: Read>(type_id: u8, reader: &mut R) -> Result<Self, DecodePacketError> {
match type_id { match type_id {
0x0 => Ok(StatusServerBoundPacket::StatusRequest), 0x0 => Ok(StatusServerBoundPacket::StatusRequest),
0x1 => { 0x1 => {