chore(release): release version 1.0.24 (#2552)

This commit is contained in:
Yingjie He
2025-05-15 14:41:28 -07:00
committed by GitHub
parent d957207a77
commit b52af12910
6 changed files with 15 additions and 23 deletions

View File

@@ -4,7 +4,6 @@ use include_dir::{include_dir, Dir};
use serde::{Deserialize, Serialize};
use std::fs;
use std::io;
use std::io::ErrorKind;
use std::path::Path;
use std::path::PathBuf;
use std::process::Command;
@@ -207,7 +206,7 @@ impl BenchmarkWorkDir {
Ok(())
} else {
let error_message = String::from_utf8_lossy(&output.stderr).to_string();
Err(io::Error::new(ErrorKind::Other, error_message))
Err(io::Error::other(error_message))
}
}

View File

@@ -65,10 +65,7 @@ impl LinuxAutomation {
DisplayServer::X11 => self.check_x11_dependencies()?,
DisplayServer::Wayland => self.check_wayland_dependencies()?,
DisplayServer::Unknown => {
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
"Unable to detect display server",
));
return Err(std::io::Error::other("Unable to detect display server"));
}
}
@@ -106,10 +103,7 @@ impl LinuxAutomation {
match self.display_server {
DisplayServer::X11 => self.execute_x11_command(cmd),
DisplayServer::Wayland => self.execute_wayland_command(cmd),
DisplayServer::Unknown => Err(std::io::Error::new(
std::io::ErrorKind::Other,
"Unknown display server",
)),
DisplayServer::Unknown => Err(std::io::Error::other("Unknown display server")),
}
}
@@ -236,8 +230,7 @@ impl SystemAutomation for LinuxAutomation {
if output.status.success() {
Ok(String::from_utf8_lossy(&output.stdout).into_owned())
} else {
Err(std::io::Error::new(
std::io::ErrorKind::Other,
Err(std::io::Error::other(
String::from_utf8_lossy(&output.stderr).into_owned(),
))
}