From cb8a421571bebb2fe0ac206175682167b7b1b64c Mon Sep 17 00:00:00 2001 From: pythcoiner Date: Mon, 2 Jun 2025 10:49:43 +0200 Subject: [PATCH] settings: rename global::Settings => global::GlobalSettings --- liana-gui/src/app/settings.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/liana-gui/src/app/settings.rs b/liana-gui/src/app/settings.rs index af0ba3fd..104914b5 100644 --- a/liana-gui/src/app/settings.rs +++ b/liana-gui/src/app/settings.rs @@ -387,7 +387,7 @@ pub mod global { pub const DEFAULT_FILE_NAME: &str = "global_settings.json"; #[derive(Debug, Deserialize, Serialize)] - pub struct Settings { + pub struct GlobalSettings { pub bitbox: Option, } @@ -425,7 +425,7 @@ pub mod global { file.read_to_string(&mut contents) .map_err(|e| ConfigError(e.to_string()))?; - let settings = serde_json::from_str::(&contents) + let settings = serde_json::from_str::(&contents) .map_err(|e| ConfigError(e.to_string()))?; Ok(settings @@ -443,7 +443,7 @@ pub mod global { file.read_to_string(&mut contents) .map_err(|e| ConfigError(e.to_string()))?; - let mut settings = serde_json::from_str::(&contents) + let mut settings = serde_json::from_str::(&contents) .map_err(|e| ConfigError(e.to_string()))?; settings.bitbox = Some(BitboxSettings { @@ -452,7 +452,7 @@ pub mod global { serde_json::to_string_pretty(&settings).map_err(|e| ConfigError(e.to_string()))? } else { - serde_json::to_string_pretty(&Settings { + serde_json::to_string_pretty(&GlobalSettings { bitbox: Some(BitboxSettings { noise_config: conf.clone(), }),