Chore: Clippy fixes to match new MSRV.

This commit is contained in:
Kyle Simpson
2023-05-21 14:25:13 +01:00
parent 1bf17d128e
commit 9fa063ff0e
10 changed files with 17 additions and 34 deletions

View File

@@ -191,7 +191,7 @@ impl AsyncAdapterStream {
self.resp_rx.try_recv().ok()
};
let msg = if let Some(msg) = msg { msg } else { break None };
let Some(msg) = msg else { break None };
// state changes
match &msg {
@@ -267,7 +267,7 @@ impl Seek for AsyncAdapterStream {
self.check_dropped()?;
let _ = self.req_tx.send(AdapterRequest::Seek(pos));
_ = self.req_tx.send(AdapterRequest::Seek(pos));
// wait for async to tell us that it has stopped writing,
// then clear buf and allow async to write again.
@@ -280,7 +280,7 @@ impl Seek for AsyncAdapterStream {
self.bytes_out.skip(self.bytes_out.capacity());
let _ = self.req_tx.send(AdapterRequest::SeekCleared);
_ = self.req_tx.send(AdapterRequest::SeekCleared);
match self.handle_messages(Operation::Seek) {
Some(AdapterResponse::SeekResult(a)) => a,
@@ -298,7 +298,7 @@ impl MediaSource for AsyncAdapterStream {
fn byte_len(&self) -> Option<u64> {
self.check_dropped().ok()?;
let _ = self.req_tx.send(AdapterRequest::ByteLen);
_ = self.req_tx.send(AdapterRequest::ByteLen);
match self.handle_messages(Operation::Len) {
Some(AdapterResponse::ByteLen(a)) => a,