Skip to content

Commit cdebaf8

Browse files
authored
Turbopack: fix unused import on mac (#78341)
### What? Fix an unused import on non-linux platforms
1 parent 48540b8 commit cdebaf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

turbopack/crates/turbo-tasks-fs/src/watcher.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::{
99
time::Duration,
1010
};
1111

12-
use anyhow::{Context, Result};
12+
use anyhow::Result;
1313
use notify::{
1414
event::{MetadataKind, ModifyKind, RenameMode},
1515
Config, EventKind, PollWatcher, RecommendedWatcher, RecursiveMode, Watcher,
@@ -112,6 +112,7 @@ impl DiskWatcher {
112112
dir_path: &Path,
113113
root_path: &Path,
114114
) -> Result<()> {
115+
use anyhow::Context;
115116
// HACK: Rewrite NotFound io errors to PathNotFound
116117
// This shouldn't ever happen (notify should transform this for us), but even after
117118
// https://github.com/notify-rs/notify/pull/611, it seems like there's still some case where

0 commit comments

Comments
 (0)