Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bastibl committed Mar 24, 2024
1 parent a05396c commit c0236d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/zigbee/src/wasm_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ fn Channel(handle: ReadSignal<Option<&'static WorkerBridge<Worker>>>) -> impl In
if let Some(h) = handle.get_untracked() {
h.send(WorkerMessage::Freq(freq));
}

});
};

Expand Down
4 changes: 3 additions & 1 deletion src/blocks/wasm/hack_rf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,9 @@ impl Kernel for HackRf {
let navigator: web_sys::Navigator = window.navigator();
navigator.usb()
} else {
let scope : WorkerGlobalScope = js_sys::global().dyn_into().expect("Neither window nor Worker context exists.");
let scope: WorkerGlobalScope = js_sys::global()
.dyn_into()
.expect("Neither window nor Worker context exists.");
let navigator = scope.navigator();
navigator.usb()
}
Expand Down

0 comments on commit c0236d8

Please sign in to comment.