Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mikayla-maki committed Mar 9, 2024
1 parent 47d414c commit e547634
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions crates/fs/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,7 @@ impl Fs for RealFs {
let tx = tx.clone();
move |event: Result<notify::Event, _>| {
if let Some(event) = event.ok() {
if event
.paths
.into_iter()
.find(|path| **path == watched_path)
.is_some()
{
if event.paths.into_iter().any(|path| *path == watched_path) {
match event.kind {
EventKind::Create(_) => {
file_watcher
Expand Down
2 changes: 2 additions & 0 deletions crates/fsevent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ doctest = false
[dependencies]
bitflags.workspace = true
parking_lot.workspace = true

[target.'cfg(target_os = "macos")'.dependencies]
fsevent-sys = "3.0.2"

[dev-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions crates/fsevent/src/fsevent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(target_os = "macos")]

use bitflags::bitflags;
use fsevent_sys::{self as fs, core_foundation as cf};
use parking_lot::Mutex;
Expand Down

0 comments on commit e547634

Please sign in to comment.