Skip to content

Remove redundant Redox cfg attributes #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ use std::fs::File;
use std::io;
use std::path::Path;

#[cfg(any(target_os = "redox", unix))]
#[cfg(unix)]
use crate::unix as imp;
#[cfg(not(any(target_os = "redox", unix, windows)))]
#[cfg(not(any(unix, windows)))]
use unknown as imp;
#[cfg(windows)]
use win as imp;

#[cfg(any(target_os = "redox", unix))]
#[cfg(unix)]
mod unix;
#[cfg(not(any(target_os = "redox", unix, windows)))]
#[cfg(not(any(unix, windows)))]
mod unknown;
#[cfg(windows)]
mod win;
Expand Down Expand Up @@ -334,15 +334,15 @@ impl Handle {
/// Return the underlying device number of this handle.
///
/// Note that this only works on unix platforms.
#[cfg(any(target_os = "redox", unix))]
#[cfg(unix)]
pub fn dev(&self) -> u64 {
self.0.dev()
}

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