Input: Rename YTDL error variants for Clippy (#55)

This silences a clippy lint around incorrect capitalisation of acronyms, but sis a breaking API change.

This was tested using `cargo make ready`.
This commit is contained in:
Kyle Simpson
2021-04-07 13:13:02 +01:00
parent 27f26ade99
commit af2347c128
2 changed files with 5 additions and 5 deletions

View File

@@ -247,7 +247,7 @@ impl Input {
}
// read from frame which is present.
let mut buffer = &mut buffer[..];
let mut buffer = buffer;
let start = decoder_state.frame_pos;
let to_write = float_space.min(decoder_state.current_frame.len() - start);
@@ -261,7 +261,7 @@ impl Input {
}
},
Codec::Pcm => {
let mut buffer = &mut buffer[..];
let mut buffer = buffer;
while written_floats < float_space {
if let Ok(signal) = self.reader.read_i16::<LittleEndian>() {
buffer.write_f32::<LittleEndian>(f32::from(signal) / 32768.0)?;