We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd6d42 commit f9f6476Copy full SHA for f9f6476
src/exec/mod.rs
@@ -106,7 +106,8 @@ pub fn run_command(
106
107
let spawn_noexec_handler = if options.noexec {
108
#[cfg(not(target_os = "linux"))]
109
- return Err(io::Error::other(
+ return Err(io::Error::new(
110
+ io::ErrorKind::Other,
111
"NOEXEC is currently only supported on Linux",
112
));
113
src/system/mod.rs
@@ -792,9 +792,10 @@ impl Process {
792
}
793
794
let ki_start = ki_proc[0].ki_start;
795
+ #[allow(clippy::useless_conversion)]
796
Ok(ProcessCreateTime::new(
- ki_start.tv_sec,
797
- ki_start.tv_usec * 1000,
+ i64::from(ki_start.tv_sec),
798
+ i64::from(ki_start.tv_usec) * 1000,
799
))
800
801
0 commit comments