diff --git a/core/src/audio_key.rs b/core/src/audio_key.rs index aae268e6..f42c6502 100644 --- a/core/src/audio_key.rs +++ b/core/src/audio_key.rs @@ -62,8 +62,8 @@ impl AudioKeyManager { fn send_key_request(&self, seq: u32, track: SpotifyId, file: FileId) { let mut data: Vec = Vec::new(); - data.write(&file.0).unwrap(); - data.write(&track.to_raw()).unwrap(); + data.write_all(&file.0).unwrap(); + data.write_all(&track.to_raw()).unwrap(); data.write_u32::(seq).unwrap(); data.write_u16::(0x0000).unwrap(); diff --git a/core/src/lib.rs b/core/src/lib.rs index b0996993..9c92c235 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::unused_io_amount)] - #[macro_use] extern crate log; extern crate num_derive; diff --git a/core/src/mercury/types.rs b/core/src/mercury/types.rs index 616225db..1d6b5b15 100644 --- a/core/src/mercury/types.rs +++ b/core/src/mercury/types.rs @@ -79,7 +79,7 @@ impl MercuryRequest { for p in &self.payload { packet.write_u16::(p.len() as u16).unwrap(); - packet.write(p).unwrap(); + packet.write_all(p).unwrap(); } packet