Fix warning when not building in test mode

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Nathan Sobo 2022-02-04 09:23:16 -07:00
parent 6ac3a44e88
commit 4eb2b978e8

View file

@ -1,7 +1,6 @@
use anyhow::{anyhow, Result}; use anyhow::{anyhow, Result};
use fsevent::EventStream; use fsevent::EventStream;
use futures::{Stream, StreamExt}; use futures::{Stream, StreamExt};
use postage::prelude::Sink as _;
use smol::io::{AsyncReadExt, AsyncWriteExt}; use smol::io::{AsyncReadExt, AsyncWriteExt};
use std::{ use std::{
io, io,
@ -164,6 +163,8 @@ impl FakeFsState {
} }
async fn emit_event(&mut self, paths: &[&Path]) { async fn emit_event(&mut self, paths: &[&Path]) {
use postage::prelude::Sink as _;
let events = paths let events = paths
.iter() .iter()
.map(|path| fsevent::Event { .map(|path| fsevent::Event {