mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 22:24:21 +01:00
chore(release): release version 1.0.24 (#2552)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(),
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user