Skip to content

Commit

Permalink
Fix inconsistent cfg attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr committed Sep 23, 2024
1 parent 44dc4bf commit 6e90d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl NodeType {
}
}

#[cfg(any(target_os = "freebsd", target_os = "openbsd"))]
#[cfg(not(target_os = "linux"))]
fn minor_base(&self) -> u32 {
match self {
NodeType::Primary => 0,
Expand Down Expand Up @@ -351,7 +351,7 @@ fn dev_path(dev: dev_t, ty: NodeType) -> io::Result<PathBuf> {
}

/// Returns the path of a specific type of node from the DRM device described by major and minor device numbers.
#[cfg(target_os = "openbsd")]
#[cfg(not(any(target_os = "linux", target_os = "freebsd")))]
fn dev_path(dev: dev_t, ty: NodeType) -> io::Result<PathBuf> {
use std::io::ErrorKind;

Expand Down

0 comments on commit 6e90d00

Please sign in to comment.