fix: use io::Error::other to satisfy clippy::io_other_error
Some checks are pending
Continuous integration / test (push) Waiting to run

This commit is contained in:
Claude 2026-05-10 17:03:00 +00:00
parent da74cf481a
commit 16bb6e16aa
No known key found for this signature in database

View file

@ -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)
}