mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
fix deprecation warning for bytes
This commit is contained in:
parent
e6fff8003f
commit
870afdb4b6
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl Encoder for APCodec {
|
|||
|
||||
buf.reserve(3 + payload.len());
|
||||
buf.put_u8(cmd);
|
||||
buf.put_u16::<BigEndian>(payload.len() as u16);
|
||||
buf.put_u16_be(payload.len() as u16);
|
||||
buf.extend_from_slice(&payload);
|
||||
|
||||
self.encode_cipher.nonce_u32(self.encode_nonce);
|
||||
|
|
Loading…
Reference in a new issue