Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kauppie committed Mar 16, 2024
1 parent f88b1c8 commit dee3e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub mod bmi2 {
impl HardwareSupportToken {
/// Returns a new instance if the CPU supports the bmi2 instruction set.
pub fn new() -> Option<Self> {
has_hardware_support().then(|| Self { _private: () })
has_hardware_support().then_some(Self { _private: () })
}
}

Expand Down

0 comments on commit dee3e77

Please sign in to comment.