Skip to content

Commit aed46cb

Browse files
Fixup imports
1 parent 3174cb2 commit aed46cb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

crates/core_simd/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ features = ["alloc"]
2828
path = "../test_helpers"
2929

3030
[dev-dependencies]
31-
std_float = { path = "../std_float/" }
31+
std_float = { path = "../std_float/", features = ["as_crate"] }

crates/core_simd/examples/nbody.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
#![feature(portable_simd)]
2-
32
extern crate std_float;
43

54
/// Benchmarks game nbody code
65
/// Taken from the `packed_simd` crate
76
/// Run this benchmark with `cargo test --example nbody`
87
mod nbody {
9-
#[cfg(not(feature = "std"))]
10-
use core::simd::*;
11-
#[cfg(feature = "std")]
128
use core_simd::simd::*;
13-
9+
#[allow(unused)] // False positive?
1410
use std_float::Float;
1511

1612
use std::f64::consts::PI;

0 commit comments

Comments
 (0)