Fix clippy warnings, and an actual bug with FanControl::try_from<u32>

This commit is contained in:
Vicki Pfau 2024-04-05 15:26:09 -07:00
parent 9d7ee926f4
commit b962bbf548
6 changed files with 21 additions and 21 deletions

View file

@ -44,7 +44,7 @@ impl Ftrace {
pub async fn init(connection: Connection) -> Result<Ftrace> {
let path = Self::base();
fs::create_dir_all(&path).await?;
setup_traces(&path.as_path()).await?;
setup_traces(path.as_path()).await?;
let file = pipe::OpenOptions::new()
.unchecked(true) // Thanks tracefs for making trace_pipe a "regular" file
.open_receiver(path.join("trace_pipe"))?;