diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rs index 0282dd3b460c4c687bb71da5c754d69820421373..9bf67013ece91500e740fde7a7dcc90c49b68124 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::{