Skip to content

Commit

Permalink
Fix use of polyfill crate module
Browse files Browse the repository at this point in the history
  • Loading branch information
pantsman0 committed Dec 4, 2023
1 parent 51cbf05 commit 61fb130
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lru/two_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,9 @@ use alloc::fmt;
use core::borrow::Borrow;
use core::hash::{BuildHasher, Hash};

<<<<<<< HEAD
#[cfg(feature = "std")]
pub(super) fn floor(val: f64) -> f64 {
val.floor()
}

#[cfg(not(feature = "std"))]
use libm::floor;
=======
// f64 function polyfill to support no_std contexts
use crate::polyfill::floor;

>>>>>>> 143023d (Implement f64 method polyfills with intrinsics support)

/// `DEFAULT_2Q_RECENT_RATIO` is the ratio of the [`TwoQueueCache`] dedicated
/// to recently added entries that have only been accessed once.
Expand Down

0 comments on commit 61fb130

Please sign in to comment.