mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-12 09:22:26 -04:00
Clean up anyhow usage
This commit is contained in:
parent
5f2cebc58b
commit
a5dfde2b17
3 changed files with 12 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
/* SPDX-License-Identifier: BSD-2-Clause */
|
||||
use anyhow::{Error, Result};
|
||||
use anyhow::{anyhow, Result};
|
||||
use inotify::{Event, EventMask, EventStream, Inotify, WatchDescriptor, WatchMask};
|
||||
use std::collections::HashMap;
|
||||
use std::ffi::OsString;
|
||||
|
@ -238,7 +238,7 @@ impl Inhibitor {
|
|||
Some(fname) => PathBuf::from(fname),
|
||||
None => {
|
||||
error!("Got an event without an associated filename!");
|
||||
return Err(Error::msg("Got an event without an associated filename"));
|
||||
return Err(anyhow!("Got an event without an associated filename"));
|
||||
}
|
||||
};
|
||||
debug!("New device {} found", path.display());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue