mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-05-18 06:51:54 +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() {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue