diff --git a/src/lib.rs b/src/lib.rs index 1514496b99..343b70ee55 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,6 @@ mod tty; mod undo; pub mod validate; -use std::borrow::Cow; use std::collections::HashMap; use std::fmt; use std::io::{self, Write}; @@ -193,6 +192,7 @@ fn complete_line( // corresponding completion_type #[cfg(all(unix, feature = "with-fuzzy"))] { + use std::borrow::Cow; if CompletionType::Fuzzy == config.completion_type() { struct Candidate { index: usize,