Skip to content

Commit 9e2ef9f

Browse files
committed
chore: clippy warning after 2024
1 parent 97f8176 commit 9e2ef9f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/host/jack/device.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,8 @@ impl DeviceTrait for Device {
212212

213213
// The settings should be fine, create a Client
214214
let client_options = super::get_client_options(self.start_server_automatically);
215-
let client;
216-
match super::get_client(&self.name, client_options) {
217-
Ok(c) => client = c,
215+
let client = match super::get_client(&self.name, client_options) {
216+
Ok(c) => c,
218217
Err(e) => {
219218
return Err(BuildStreamError::BackendSpecific {
220219
err: BackendSpecificError { description: e },
@@ -253,9 +252,8 @@ impl DeviceTrait for Device {
253252

254253
// The settings should be fine, create a Client
255254
let client_options = super::get_client_options(self.start_server_automatically);
256-
let client;
257-
match super::get_client(&self.name, client_options) {
258-
Ok(c) => client = c,
255+
let client = match super::get_client(&self.name, client_options) {
256+
Ok(c) => c,
259257
Err(e) => {
260258
return Err(BuildStreamError::BackendSpecific {
261259
err: BackendSpecificError { description: e },

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl wasm_bindgen::convert::FromWasmAbi for BufferSize {
374374
type Abi = <Option<FrameCount> as wasm_bindgen::convert::FromWasmAbi>::Abi;
375375

376376
unsafe fn from_abi(js: Self::Abi) -> Self {
377-
match Option::<FrameCount>::from_abi(js) {
377+
match unsafe { Option::<FrameCount>::from_abi(js) } {
378378
None => Self::Default,
379379
Some(fc) => Self::Fixed(fc),
380380
}

0 commit comments

Comments
 (0)