Skip to content

Commit 375d762

Browse files
committed
Fix warnings
1 parent 25efa36 commit 375d762

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/lib.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,11 @@ pub use self::{
4545

4646
#[cfg(feature = "intrinsics")]
4747
mod intrinsics {
48-
pub use core::intrinsics::{likely, unlikely};
48+
pub use core::intrinsics::unlikely;
4949
}
5050

5151
#[cfg(not(feature = "intrinsics"))]
5252
mod intrinsics {
53-
#[inline(always)]
54-
pub fn likely(b: bool) -> bool {
55-
b
56-
}
57-
5853
#[inline(always)]
5954
pub fn unlikely(b: bool) -> bool {
6055
b

src/stats.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ impl_filtered_callback_ref!(FilteredAtomicCounter);
625625
mod tests {
626626
use super::{AtomicCounter, Counter, FilteredAtomicCounter, FilteredCounter};
627627
use crate::{helper, CallbackRef, Owns, Proxy, Region};
628-
use std::alloc::{AllocErr, AllocInit, AllocRef, Layout, ReallocPlacement, System};
628+
use std::alloc::{AllocInit, AllocRef, Layout, ReallocPlacement};
629629

630630
#[allow(clippy::too_many_lines)]
631631
fn run_suite(callbacks: &impl CallbackRef) {

0 commit comments

Comments
 (0)