fix: apply clippy suggestions (#120)

* fix: apply clippy suggestions

* fmt

* clippy for linux targets
This commit is contained in:
Fabian-Lars
2023-02-01 11:27:33 +01:00
committed by GitHub
parent 2e515abba7
commit 4bb200aac5
8 changed files with 213 additions and 171 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ enum WatcherKind {
fn watch_raw<R: Runtime>(window: Window<R>, rx: Receiver<notify::Result<Event>>, id: Id) {
spawn(move || {
let event_name = format!("watcher://raw-event/{}", id);
let event_name = format!("watcher://raw-event/{id}");
while let Ok(event) = rx.recv() {
if let Ok(event) = event {
// TODO: Should errors be emitted too?
@@ -58,7 +58,7 @@ fn watch_raw<R: Runtime>(window: Window<R>, rx: Receiver<notify::Result<Event>>,
fn watch_debounced<R: Runtime>(window: Window<R>, rx: Receiver<DebounceEventResult>, id: Id) {
spawn(move || {
let event_name = format!("watcher://debounced-event/{}", id);
let event_name = format!("watcher://debounced-event/{id}");
while let Ok(event) = rx.recv() {
if let Ok(event) = event {
// TODO: Should errors be emitted too?