Skip to content

Commit

Permalink
Minor: drop std where possible (use core).
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfrances107 committed Feb 28, 2024
1 parent fd14611 commit c27c945
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
2 changes: 1 addition & 1 deletion examples/triangulate.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::iter::repeat_with;
use core::iter::repeat_with;

const N: usize = 1_000_000;

Expand Down
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit c27c945

Please sign in to comment.