From 16bb6e16aa37abac6c17133e8c2ac8a9d690c53c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 May 2026 17:03:00 +0000 Subject: [PATCH] fix: use io::Error::other to satisfy clippy::io_other_error --- src/stremio_app/window_settings.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }