Skip to content

Commit 894b56f

Browse files
committed
Auto merge of #538 - overlookmotel:shorten, r=Amanieu
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.
2 parents 8cb647f + e71fa1d commit 894b56f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/raw/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ use self::imp::Group;
5151
// Branch prediction hint. This is currently only available on nightly but it
5252
// consistently improves performance by 10-15%.
5353
#[cfg(not(feature = "nightly"))]
54-
use core::convert::identity as likely;
55-
#[cfg(not(feature = "nightly"))]
56-
use core::convert::identity as unlikely;
54+
use core::convert::{identity as likely, identity as unlikely};
5755
#[cfg(feature = "nightly")]
5856
use core::intrinsics::{likely, unlikely};
5957

0 commit comments

Comments
 (0)