diff options
| author | Solstice <solstice@local> | 2026-06-09 00:17:02 -0700 |
|---|---|---|
| committer | Solstice <solstice@local> | 2026-06-09 00:17:02 -0700 |
| commit | 25e1dcf205cd14feafdd9b4cf6b7a66f253ba6d2 (patch) | |
| tree | dbb093278df115040a67791367711f06e57d3d3a /src-tauri/src/state.rs | |
| parent | 72626524c4a1c7d6642bc170520913273acb1a5c (diff) | |
fix: backend code review — atomic writes, lock ordering, validation
Diffstat (limited to 'src-tauri/src/state.rs')
| -rw-r--r-- | src-tauri/src/state.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src-tauri/src/state.rs b/src-tauri/src/state.rs index 9cd3698..8f3d52b 100644 --- a/src-tauri/src/state.rs +++ b/src-tauri/src/state.rs @@ -1,4 +1,3 @@ -use std::path::PathBuf; use std::sync::{Arc, Mutex}; use serde::{Deserialize, Serialize}; use crate::storage::AppData; @@ -24,11 +23,9 @@ pub struct TimerState { /// Wrapper held in Tauri managed state — contains the Arc so commands can clone it. pub struct TimerStateWrapper(pub Arc<Mutex<TimerState>>); -/// Wrapper for AppData — contains the Arc and the data directory path. +/// Wrapper for AppData — contains the Arc. pub struct AppDataWrapper { pub data: Arc<Mutex<AppData>>, - #[allow(dead_code)] - pub data_dir: PathBuf, } impl TimerState { |
