From 4eb2b978e87b819e708f5cd8f506e03cfb0bf4ac Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 4 Feb 2022 09:23:16 -0700 Subject: [PATCH] Fix warning when not building in test mode Co-Authored-By: Antonio Scandurra --- crates/project/src/fs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/project/src/fs.rs b/crates/project/src/fs.rs index 994f60fb1f..8ef076abc3 100644 --- a/crates/project/src/fs.rs +++ b/crates/project/src/fs.rs @@ -1,7 +1,6 @@ use anyhow::{anyhow, Result}; use fsevent::EventStream; use futures::{Stream, StreamExt}; -use postage::prelude::Sink as _; use smol::io::{AsyncReadExt, AsyncWriteExt}; use std::{ io, @@ -164,6 +163,8 @@ impl FakeFsState { } async fn emit_event(&mut self, paths: &[&Path]) { + use postage::prelude::Sink as _; + let events = paths .iter() .map(|path| fsevent::Event {