diff --git a/src/stremio_app/window_settings.rs b/src/stremio_app/window_settings.rs index e009e34..76179ea 100644 --- a/src/stremio_app/window_settings.rs +++ b/src/stremio_app/window_settings.rs @@ -44,8 +44,7 @@ impl WindowSettings { if let Some(parent) = path.parent() { fs::create_dir_all(parent)?; } - let json = serde_json::to_string_pretty(&settings) - .map_err(|err| io::Error::new(io::ErrorKind::Other, err))?; + let json = serde_json::to_string_pretty(&settings).map_err(io::Error::other)?; fs::write(path, json) }