fn add(task: &str, priority: u8) {
  println!("Adding task `{}` with priority {}...", task, priority);
  let task = Task::new(task.to_owned(), priority);
  if let Err(_) = file::add_task(task) {
    println!("Error adding task.");
  }
}
/// Add a new task with description `task` and a certain `priority` level.
Add a new task with description `task` and a certain `priority` level.
Add a new task with description ` task ` and a certain ` priority ` level .
fn add(task: &str, priority: u8) {
  println!("Adding task `{}` with priority {}...", task, priority);
  let task = Task::new(task.to_owned(), priority);
  if let Err(_) = file::add_task(task) {
    println!("Error adding task.");
  }
}
fn add ( task : & str , priority : u8 ) { println ! ( " " task priority ) ; let task = Task :: new ( task . to_owned ( ) , priority ) ; if let Err ( _ ) = file :: add_task ( task ) { println ! ( " " ) ; } }
Add a new task with description `task` and a certain `priority` level.
Add a new task with description ` task ` and a certain ` priority ` level .
task
&str
priority
u8
task
&str
priority
u8