From 655483485f91019f46d944f5cca7770d4df7b519 Mon Sep 17 00:00:00 2001 From: Robert Pergl Date: Fri, 8 Nov 2024 17:34:21 +0100 Subject: [PATCH] Fix warnings --- src/persistence.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/persistence.rs b/src/persistence.rs index 9a7af6e..2f54593 100644 --- a/src/persistence.rs +++ b/src/persistence.rs @@ -1,9 +1,9 @@ #[cfg(target_arch = "wasm32")] mod web_persistence { - use web_sys::window; + // use web_sys::window; use crate::model::Model; - pub fn save_model(model: &Model) -> std::io::Result<()> { + pub fn save_model(_model: &Model) -> std::io::Result<()> { // if let Ok(serialized) = ron::ser::to_string_pretty(model, ron::ser::PrettyConfig::default()) { // if let Some(window) = window() { // if let Some(local_storage) = window.local_storage().unwrap() {