diff --git a/src/main.rs b/src/main.rs index 48a5ab6..3c0f290 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![warn(clippy::all, clippy::pedantic, clippy::nursery)] + use std::{ collections::BTreeMap, error::Error, @@ -98,7 +100,7 @@ impl ToDooDooApp { ); file.read_to_string(&mut notes) .expect("failed to read file"); - Self { file, notes } + Self { notes, file } } fn save(&mut self) {