mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 11:16:45 -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 std::collections::HashMap;
|
||||
use std::fmt::Debug;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
@ -95,7 +95,7 @@ impl Service for Ftrace {
|
|||
let mut string = String::new();
|
||||
self.pipe
|
||||
.as_mut()
|
||||
.ok_or(Error::msg("BUG: trace_pipe missing"))?
|
||||
.ok_or(anyhow!("BUG: trace_pipe missing"))?
|
||||
.read_line(&mut string)
|
||||
.await?;
|
||||
if let Err(e) = self.handle_event(string.trim_end()).await {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue