Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Oct 19, 2024
1 parent df65ca8 commit b3c4ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/ops/fs_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ struct WatcherState {
watcher: RecommendedWatcher,
}

fn starts_with_canonicalized(path: &PathBuf, prefix: &str) -> bool {
fn starts_with_canonicalized(path: &Path, prefix: &str) -> bool {
#[allow(clippy::disallowed_methods)]
let path = path.canonicalize().ok();
#[allow(clippy::disallowed_methods)]
let prefix = std::fs::canonicalize(prefix).ok();
Expand Down

0 comments on commit b3c4ec2

Please sign in to comment.