pub fn save(tasks: &TaskSlice, filename: &Path) -> Result<(), TodoError>
Saves the list of todos into a local file. Returns an error if saving fails.