mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-05-18 11:01:50 +00:00
fix: use io::Error::other to satisfy clippy::io_other_error
Some checks are pending
Continuous integration / test (push) Waiting to run
Some checks are pending
Continuous integration / test (push) Waiting to run
This commit is contained in:
parent
da74cf481a
commit
16bb6e16aa
1 changed files with 1 additions and 2 deletions
|
|
@ -44,8 +44,7 @@ impl WindowSettings {
|
||||||
if let Some(parent) = path.parent() {
|
if let Some(parent) = path.parent() {
|
||||||
fs::create_dir_all(parent)?;
|
fs::create_dir_all(parent)?;
|
||||||
}
|
}
|
||||||
let json = serde_json::to_string_pretty(&settings)
|
let json = serde_json::to_string_pretty(&settings).map_err(io::Error::other)?;
|
||||||
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))?;
|
|
||||||
fs::write(path, json)
|
fs::write(path, json)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue