chore: Fix more clippy lints
This commit is contained in:
parent
13b039fa34
commit
24a557807d
|
@ -76,7 +76,7 @@ impl<R: AsRef<[u8]> + Default> SeekableDecoder for Mp3Decoder<Cursor<R>> {
|
|||
// TODO: This is funky.
|
||||
// I want to reset the `BitStream` and `Cursor` to their initial positions,
|
||||
// but have to work around the borrowing rules of Rust.
|
||||
let mut cursor = std::mem::replace(self.decoder.reader_mut(), Default::default());
|
||||
let mut cursor = std::mem::take(self.decoder.reader_mut());
|
||||
cursor.set_position(0);
|
||||
*self = Mp3Decoder::new(self.num_channels, self.sample_rate, cursor);
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ impl<'gc> EditText<'gc> {
|
|||
// See SWF19 pp. 173-174 for supported HTML tags.
|
||||
if c == '<' {
|
||||
// Skip characters until we see a close bracket.
|
||||
chars.by_ref().skip_while(|&x| x != '>').next();
|
||||
chars.by_ref().find(|&x| x == '>');
|
||||
} else {
|
||||
result.push(c);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue