Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit a185952

Browse files
rrbutanialexcrichton
authored andcommitted
Use core for constants instead of std
(thanks @vks)
1 parent 1372b52 commit a185952

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/math/pow.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,10 @@ pub fn pow(x: f64, y: f64) -> f64 {
411411

412412
#[cfg(test)]
413413
mod tests {
414-
extern crate std;
414+
extern crate core;
415415

416-
use self::std::f64::consts::{E, PI};
417-
use self::std::f64::{EPSILON, INFINITY, MAX, MIN, MIN_POSITIVE, NAN, NEG_INFINITY};
416+
use self::core::f64::consts::{E, PI};
417+
use self::core::f64::{EPSILON, INFINITY, MAX, MIN, MIN_POSITIVE, NAN, NEG_INFINITY};
418418
use super::pow;
419419

420420
const POS_ZERO: &[f64] = &[0.0];

0 commit comments

Comments
 (0)