Skip to content

Commit f9f6476

Browse files
committed
freebsd fixes
1 parent 7bd6d42 commit f9f6476

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/exec/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ pub fn run_command(
106106

107107
let spawn_noexec_handler = if options.noexec {
108108
#[cfg(not(target_os = "linux"))]
109-
return Err(io::Error::other(
109+
return Err(io::Error::new(
110+
io::ErrorKind::Other,
110111
"NOEXEC is currently only supported on Linux",
111112
));
112113

src/system/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,9 +792,10 @@ impl Process {
792792
}
793793

794794
let ki_start = ki_proc[0].ki_start;
795+
#[allow(clippy::useless_conversion)]
795796
Ok(ProcessCreateTime::new(
796-
ki_start.tv_sec,
797-
ki_start.tv_usec * 1000,
797+
i64::from(ki_start.tv_sec),
798+
i64::from(ki_start.tv_usec) * 1000,
798799
))
799800
}
800801
}

0 commit comments

Comments
 (0)