From 543743ab44e0fc463d94fffc22619da13985038b Mon Sep 17 00:00:00 2001 From: Mikael Mello Date: Wed, 27 Dec 2023 20:52:15 -0800 Subject: [PATCH] Fix --- inquire/src/ui/backend.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inquire/src/ui/backend.rs b/inquire/src/ui/backend.rs index b6c359b3..f1c2a287 100644 --- a/inquire/src/ui/backend.rs +++ b/inquire/src/ui/backend.rs @@ -805,7 +805,7 @@ pub(crate) mod test { use crate::{ui::Key, validator::ErrorMessage}; - use super::{date::DateSelectBackend, CommonBackend}; + use super::CommonBackend; #[derive(Debug, Clone, PartialEq)] pub enum Token { @@ -913,7 +913,8 @@ pub(crate) mod test { } } - impl DateSelectBackend for FakeBackend { + #[cfg(feature = "date")] + impl crate::ui::date::DateSelectBackend for FakeBackend { fn render_calendar_prompt(&mut self, prompt: &str) -> std::io::Result<()> { self.push_token(Token::Prompt(prompt.to_string())); Ok(())