Skip to content

Commit

Permalink
Fix unexpected_cfgs warning.
Browse files Browse the repository at this point in the history
`target_pointer_width` can have values 16, 32, or 64, so don't
compare against 8. This results in a warning due to the
`unexpected_cfgs` lint.
  • Loading branch information
waywardmonkeys committed Nov 1, 2024
1 parent b6f0631 commit dcf139a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ pub trait Handle: 'static + Copy + fmt::Debug + Eq + Ord {
#[cfg(any(
all(target_pointer_width = "32", feature = "large-handle"),
target_pointer_width = "16",
target_pointer_width = "8",
))]
debug_assert!(self.idx() <= usize::max_value() as hsize);

Expand Down

0 comments on commit dcf139a

Please sign in to comment.