Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelmello committed Dec 28, 2023
1 parent 107bbf4 commit 543743a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inquire/src/ui/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit 543743a

Please sign in to comment.