Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
roper79 committed Nov 8, 2024
1 parent 3c579b1 commit 6554834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/persistence.rs
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit 6554834

Please sign in to comment.