From 7a3603798d54506cea5515d8740179b456c61e6e Mon Sep 17 00:00:00 2001 From: Vladimir Markelov Date: Thu, 29 Feb 2024 19:37:35 -0800 Subject: [PATCH] #92 - forbid running rm,done,undone,edit,postpone without specifying tasks to process --- src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index bc41ed1..d810fa6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -308,10 +308,7 @@ fn task_list_calendar(stdout: &mut StandardStream, tasks: &todo::TaskSlice, conf fn task_done(stdout: &mut StandardStream, tasks: &mut todo::TaskVec, conf: &conf::Conf) -> io::Result<()> { if is_filter_empty(&conf.flt) { - writeln!( - stdout, - "Warning: you are going to mark all the tasks 'done'. Please specify tasks to complete." - )?; + writeln!(stdout, "Warning: you are going to mark all the tasks 'done'. Please specify tasks to complete.")?; std::process::exit(1); } let processed = process_tasks(stdout, tasks, conf, "completed", todo::done)?;