Skip to content

Commit 515331d

Browse files
authored
cfg: remove redundant Redox cfg attributes
Redox has been part of the Unix family since 2019, so we can simplify the cfg attributes by removing the explicit Redox checks. Fixes #58
1 parent bbe5aa3 commit 515331d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ use std::fs::File;
7575
use std::io;
7676
use std::path::Path;
7777

78-
#[cfg(any(target_os = "redox", unix))]
78+
#[cfg(unix)]
7979
use crate::unix as imp;
80-
#[cfg(not(any(target_os = "redox", unix, windows)))]
80+
#[cfg(not(any(unix, windows)))]
8181
use unknown as imp;
8282
#[cfg(windows)]
8383
use win as imp;
8484

85-
#[cfg(any(target_os = "redox", unix))]
85+
#[cfg(unix)]
8686
mod unix;
87-
#[cfg(not(any(target_os = "redox", unix, windows)))]
87+
#[cfg(not(any(unix, windows)))]
8888
mod unknown;
8989
#[cfg(windows)]
9090
mod win;
@@ -334,15 +334,15 @@ impl Handle {
334334
/// Return the underlying device number of this handle.
335335
///
336336
/// Note that this only works on unix platforms.
337-
#[cfg(any(target_os = "redox", unix))]
337+
#[cfg(unix)]
338338
pub fn dev(&self) -> u64 {
339339
self.0.dev()
340340
}
341341

342342
/// Return the underlying inode number of this handle.
343343
///
344344
/// Note that this only works on unix platforms.
345-
#[cfg(any(target_os = "redox", unix))]
345+
#[cfg(unix)]
346346
pub fn ino(&self) -> u64 {
347347
self.0.ino()
348348
}

0 commit comments

Comments
 (0)