From b9d4f97e6df35dab4792cec1d2ffdddb57623cb1 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Tue, 19 Dec 2023 11:43:35 +0100 Subject: [PATCH] uucore: remove useless conversion for features/fs on OpenBSD - src/uucore/src/lib/features/fs.rs: in inode function, remove useless conversion for target_OS = OpenBSD Signed-off-by: Laurent Cheylus --- src/uucore/src/lib/features/fs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uucore/src/lib/features/fs.rs b/src/uucore/src/lib/features/fs.rs index 94ca82c8098..41437c55468 100644 --- a/src/uucore/src/lib/features/fs.rs +++ b/src/uucore/src/lib/features/fs.rs @@ -148,14 +148,13 @@ impl FileInformation { #[cfg(unix)] pub fn inode(&self) -> u64 { #[cfg(all( - not(any(target_os = "freebsd", target_os = "netbsd", target_os = "openbsd")), + not(any(target_os = "freebsd", target_os = "netbsd")), target_pointer_width = "64" ))] return self.0.st_ino; #[cfg(any( target_os = "freebsd", target_os = "netbsd", - target_os = "openbsd", not(target_pointer_width = "64") ))] return self.0.st_ino.into();