diff --git a/core/src/connection/handshake.rs b/core/src/connection/handshake.rs index 03b355985..e0b639256 100644 --- a/core/src/connection/handshake.rs +++ b/core/src/connection/handshake.rs @@ -229,8 +229,8 @@ where Ok(message) } -async fn read_into_accumulator<'a, 'b, T: AsyncRead + Unpin>( - connection: &'a mut T, +async fn read_into_accumulator<'b, T: AsyncRead + Unpin>( + connection: &mut T, size: usize, acc: &'b mut Vec, ) -> io::Result<&'b mut [u8]> { diff --git a/playback/src/audio_backend/rodio.rs b/playback/src/audio_backend/rodio.rs index 2632f54a5..f63fdef07 100644 --- a/playback/src/audio_backend/rodio.rs +++ b/playback/src/audio_backend/rodio.rs @@ -145,7 +145,7 @@ fn create_sink( }, Some(device_name) => { host.output_devices()? - .find(|d| d.name().ok().map_or(false, |name| name == device_name)) // Ignore devices for which getting name fails + .find(|d| d.name().ok().is_some_and(|name| name == device_name)) // Ignore devices for which getting name fails .ok_or_else(|| RodioError::DeviceNotAvailable(device_name.to_string()))? } None => host