Skip to content

Commit

Permalink
Auto merge of #538 - overlookmotel:shorten, r=Amanieu
Browse files Browse the repository at this point in the history
Shorten code

Condense code a little.

I don't know if little PRs like this have more downside in the noise they create for maintainers than the benefit of the changes themselves. If so, please say so! That'd be a completely legitimate response. I'm exploring hashbrown's code, and just submitting small bits where I find them.
  • Loading branch information
bors committed Jul 14, 2024
2 parents 8cb647f + e71fa1d commit 894b56f
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 894b56f

Please sign in to comment.