File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments