Skip to content

Commit

Permalink
remove legacy numeric constant import
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed May 27, 2024
1 parent 9a482bf commit 6ac2d68
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions benchmark/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

use std::i32;

#[derive(Clone, Copy)]
pub struct FastRand {
x: u32,
Expand Down Expand Up @@ -67,7 +65,6 @@ impl FastRand {

#[inline]
pub fn next_double(&mut self, range: f64) -> f64 {
use std::u32;
self.next_u32() as f64 * range / (u32::MAX as f64)
}
}
Expand Down

0 comments on commit 6ac2d68

Please sign in to comment.