Skip to content

Commit

Permalink
Shorten code
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jul 14, 2024
1 parent 8cb647f commit e71fa1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ use self::imp::Group;
// Branch prediction hint. This is currently only available on nightly but it
// consistently improves performance by 10-15%.
#[cfg(not(feature = "nightly"))]
use core::convert::identity as likely;
#[cfg(not(feature = "nightly"))]
use core::convert::identity as unlikely;
use core::convert::{identity as likely, identity as unlikely};
#[cfg(feature = "nightly")]
use core::intrinsics::{likely, unlikely};

Expand Down

0 comments on commit e71fa1d

Please sign in to comment.