Skip to content

Commit a49e3bf

Browse files
committed
chore: keep rust version
1 parent 6cea2ad commit a49e3bf

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/platforms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ env:
2626
# MSRV varies by backend due to platform-specific dependencies
2727
MSRV_AAUDIO: "1.85"
2828
MSRV_ALSA: "1.85"
29-
MSRV_COREAUDIO: "1.82"
29+
MSRV_COREAUDIO: "1.80"
3030
MSRV_JACK: "1.82"
31-
MSRV_WASIP1: "1.82"
31+
MSRV_WASIP1: "1.78"
3232
MSRV_WASM: "1.82"
3333
MSRV_WINDOWS: "1.82"
3434

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ documentation = "https://docs.rs/cpal"
77
license = "Apache-2.0"
88
keywords = ["audio", "sound"]
99
edition = "2021"
10-
rust-version = "1.82"
10+
rust-version = "1.78"
1111

1212
[features]
1313
# ASIO backend for Windows

src/host/pipewire/device.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,7 @@ impl DeviceTrait for Device {
294294
drop(context);
295295
})
296296
.unwrap();
297-
if pw_init_rv
298-
.recv_timeout(wait_timeout)
299-
.ok()
300-
.is_none_or(|re| !re)
301-
{
297+
if pw_init_rv.recv_timeout(wait_timeout).unwrap_or(false) {
302298
return Err(crate::BuildStreamError::DeviceNotAvailable);
303299
};
304300
Ok(Stream {
@@ -357,11 +353,7 @@ impl DeviceTrait for Device {
357353
drop(context);
358354
})
359355
.unwrap();
360-
if pw_init_rv
361-
.recv_timeout(wait_timeout)
362-
.ok()
363-
.is_none_or(|re| !re)
364-
{
356+
if pw_init_rv.recv_timeout(wait_timeout).unwrap_or(false) {
365357
return Err(crate::BuildStreamError::DeviceNotAvailable);
366358
};
367359
Ok(Stream {

0 commit comments

Comments
 (0)