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 12:13:20 +01:00
parent 9920f13a34
commit b9d4f97e6d
+1 -2
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();