            let format = format::FormatBuilder::new().padding(1, 1).build();
            table.set_format(format);
            table.printstd();
        }
    }
}

fn max_title_width(tasks: &[&Task]) -> usize {
    *tasks
        .iter()
        .map(|task| task.title.len())
        .max()
        .get_or_insert(0)
}
