From c27c945897f14c9cca20bb25ce41a7ede76db974 Mon Sep 17 00:00:00 2001 From: martinfrances107 Date: Wed, 28 Feb 2024 20:11:59 +0000 Subject: [PATCH] Minor: drop std where possible (use core). --- benches/bench.rs | 2 +- examples/triangulate.rs | 2 +- tests/tests.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index 4c022cf..3ffcfcb 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -4,10 +4,10 @@ extern crate criterion; extern crate delaunator; extern crate rand; +use core::iter::repeat_with; use criterion::{AxisScale, BenchmarkId, Criterion, PlotConfiguration}; use delaunator::{triangulate, Point}; use rand::{rngs::StdRng, Rng, SeedableRng}; -use std::iter::repeat_with; const COUNTS: &[usize] = &[100, 1000, 10_000, 100_000]; diff --git a/examples/triangulate.rs b/examples/triangulate.rs index 0d8dc05..2ac3a18 100644 --- a/examples/triangulate.rs +++ b/examples/triangulate.rs @@ -1,4 +1,4 @@ -use std::iter::repeat_with; +use core::iter::repeat_with; const N: usize = 1_000_000; diff --git a/tests/tests.rs b/tests/tests.rs index e3a63d6..dda09f3 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,5 +1,5 @@ +use core::f64; use delaunator::{triangulate, Point, Triangulation, EMPTY, EPSILON}; -use std::f64; use std::fs::File; macro_rules! test_fixture {