Fix warning when not building in test mode
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
6ac3a44e88
commit
4eb2b978e8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user