mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Fix clippy warnings
This commit is contained in:
parent
aa4cc0bee6
commit
e58934849f
3 changed files with 3 additions and 5 deletions
|
@ -62,8 +62,8 @@ impl AudioKeyManager {
|
|||
|
||||
fn send_key_request(&self, seq: u32, track: SpotifyId, file: FileId) {
|
||||
let mut data: Vec<u8> = 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::<BigEndian>(seq).unwrap();
|
||||
data.write_u16::<BigEndian>(0x0000).unwrap();
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#![allow(clippy::unused_io_amount)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate num_derive;
|
||||
|
|
|
@ -79,7 +79,7 @@ impl MercuryRequest {
|
|||
|
||||
for p in &self.payload {
|
||||
packet.write_u16::<BigEndian>(p.len() as u16).unwrap();
|
||||
packet.write(p).unwrap();
|
||||
packet.write_all(p).unwrap();
|
||||
}
|
||||
|
||||
packet
|
||||
|
|
Loading…
Reference in a new issue