1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

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 <foxy@free.fr>
This commit is contained in:
Laurent Cheylus 2023-12-19 11:43:35 +01:00
parent 9920f13a34
commit b9d4f97e6d
No known key found for this signature in database

View file

@ -148,14 +148,13 @@ impl FileInformation {
#[cfg(unix)] #[cfg(unix)]
pub fn inode(&self) -> u64 { pub fn inode(&self) -> u64 {
#[cfg(all( #[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" target_pointer_width = "64"
))] ))]
return self.0.st_ino; return self.0.st_ino;
#[cfg(any( #[cfg(any(
target_os = "freebsd", target_os = "freebsd",
target_os = "netbsd", target_os = "netbsd",
target_os = "openbsd",
not(target_pointer_width = "64") not(target_pointer_width = "64")
))] ))]
return self.0.st_ino.into(); return self.0.st_ino.into();