/// Removes a task from the list
///
/// # Errors
///
/// - couldn't find task with given ID
Removes a task from the list
Removes a task from the list
pub fn remove(id: usize) -> Result<(), String> {
    let tasks = read_todo_file()?;
    let tasks = remove_tasks(vec![id], &tasks)?;
    overwrite_todo_file(&tasks)
}
pub fn remove ( id : usize ) -> Result < ( ) , String > { let tasks = read_todo_file ( ) ? ; let tasks = remove_tasks ( vec ! [ id ] , & tasks ) ? ; overwrite_todo_file ( & tasks ) }
Removes a task from the list
Removes a task from the list
id
usize
errors
couldn't find task with given ID
couldn ' t find task with given ID