Skip to content

Commit e71fa1d

Browse files
committed
Shorten code
1 parent 8cb647f commit e71fa1d

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)