diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rs index 0282dd3b46..9bf67013ec 100644 --- a/crates/fs/src/fs.rs +++ b/crates/fs/src/fs.rs @@ -11,7 +11,9 @@ use git2::Repository as LibGitRepository; use parking_lot::Mutex; use repository::GitRepository; use rope::Rope; -use smol::io::{AsyncReadExt, AsyncWriteExt}; +#[cfg(any(test, feature = "test-support"))] +use smol::io::AsyncReadExt; +use smol::io::AsyncWriteExt; use std::io::Write; use std::sync::Arc; use std::{