From 807f945a08e0ff28968194c098a0a05a6a79ba09 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 3 Aug 2020 21:46:54 +0530 Subject: don't write to stderr! --- src/command.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/command.rs b/src/command.rs index e4c099e..4f3e491 100644 --- a/src/command.rs +++ b/src/command.rs @@ -29,7 +29,6 @@ fn get_command_completion(prefix: &str) -> Option { fn get_habit_completion(prefix: &str, habit_names: &[String]) -> Option { let first_match = habit_names.iter().filter(|&x| x.starts_with(prefix)).next(); - eprintln!("{:?}| {:?}", prefix, first_match); return first_match.map(|x| x.into()); } @@ -60,7 +59,6 @@ pub fn open_command_window(s: &mut Cursive) { } else { let word = contents.split(' ').last().unwrap(); let completion = get_habit_completion(word, &habit_list); - eprintln!("{:?} | {:?}", completion, contents); if let Some(c) = completion { let cb = view.set_content(format!("{}", contents) + &c[word.len()..]); return Some(EventResult::Consumed(Some(cb))); -- cgit v1.2.3