From 432099049751f386d81f50a9fb162539cf1ff47a Mon Sep 17 00:00:00 2001 From: Penwing Date: Thu, 25 Jan 2024 20:54:19 +0100 Subject: [PATCH] followed instructions --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index e50d8dd..eab7df7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,12 +45,11 @@ fn main() -> Result<(), eframe::Error> { ..Default::default() }; - ; // Attempt to load previous state let app_state: tools::AppState = if Path::new(SAVE_PATH).exists() { - app_state = tools::load_state(SAVE_PATH).expect("Failed to load the save") + tools::load_state(SAVE_PATH).expect("Failed to load the save") } else { - app_state = tools::AppState {tabs: vec![], theme: 0,} + tools::AppState {tabs: vec![], theme: 0,} }; eframe::run_native(