chore: clippy

This commit is contained in:
Tobias Berger 2024-02-05 21:17:27 +01:00
parent 89ee4425ed
commit eb5d8b8940
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

@ -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) {