Skip to content

Commit e8014a7

Browse files
authored
fix(cli): do not crash on watcher (#6303)
1 parent 138cb8d commit e8014a7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/cli-watcher-crash.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
---
5+
6+
Do not crash on Cargo.toml watcher.

tooling/cli/src/interface/rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Interface for Rust {
131131
let (tx, rx) = sync_channel(1);
132132
let mut watcher = new_debouncer(Duration::from_secs(1), None, move |r| {
133133
if let Ok(events) = r {
134-
tx.send(events).unwrap()
134+
let _ = tx.send(events);
135135
}
136136
})
137137
.unwrap();

0 commit comments

Comments
 (0)