From 03a96d2793b9b187d4bc636440597132d7ae643d Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 7 Jun 2023 14:15:20 -0700 Subject: [PATCH] Feature gate import --- crates/fs/src/fs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rs index 2e0a03dbeb..16936fc6d4 100644 --- a/crates/fs/src/fs.rs +++ b/crates/fs/src/fs.rs @@ -12,7 +12,6 @@ use rope::Rope; use smol::io::{AsyncReadExt, AsyncWriteExt}; use std::borrow::Cow; use std::cmp; -use std::ffi::OsStr; use std::io::Write; use std::sync::Arc; use std::{ @@ -31,6 +30,8 @@ use collections::{btree_map, BTreeMap}; use repository::{FakeGitRepositoryState, GitFileStatus}; #[cfg(any(test, feature = "test-support"))] use std::sync::Weak; +#[cfg(any(test, feature = "test-support"))] +use std::ffi::OsStr; lazy_static! { static ref LINE_SEPARATORS_REGEX: Regex = Regex::new("\r\n|\r|\u{2028}|\u{2029}").unwrap();