From eb5d8b8940c1fa9aee884d6847fba427df2534e5 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Mon, 5 Feb 2024 21:17:27 +0100 Subject: [PATCH] chore: clippy --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {