-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: only import first module under std/core
And let the lib user choose between using the full path or not
- Loading branch information
Showing
4 changed files
with
29 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
extern crate alloc; | ||
|
||
use alloc::{format, string::String, string::ToString, vec}; | ||
use alloc::{format, string, vec}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
use std::cmp::Ordering; | ||
use std::convert::TryFrom; | ||
use std::default::Default; | ||
use std::error::Error; | ||
use std::fmt; | ||
use std::hash::{Hash, Hasher}; | ||
use std::num::{ParseFloatError, ParseIntError}; | ||
use std::ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, Rem, Sub, SubAssign}; | ||
use std::iter::Sum; | ||
use std::str::{self, FromStr}; | ||
use std::collections::hash_map::DefaultHasher; | ||
|
||
use std::f64::consts::PI; | ||
use std::f32::consts::PI as PI_f32; | ||
use std::f64::DIGITS; | ||
use std::f32::DIGITS as DIGITS_f32; | ||
use std::{cmp, convert, default, fmt, hash, num, ops, iter, str, string, i8, f32, f64}; | ||
|
||
use std::i8::{MAX, MIN}; | ||
use std::collections::hash_map::DefaultHasher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
use core::cmp::Ordering; | ||
use core::convert::TryFrom; | ||
use core::default::Default; | ||
use core::fmt; | ||
use core::hash::{Hash, Hasher}; | ||
use core::num::{ParseFloatError, ParseIntError}; | ||
use core::ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, Rem, Sub, SubAssign}; | ||
use core::iter::Sum; | ||
use core::str::{self, FromStr}; | ||
use core::{cmp, convert, default, fmt, hash, num, ops, iter, str, i8, f32, f64}; | ||
|
||
#[cfg(test)] | ||
use siphasher::sip::SipHasher as DefaultHasher; | ||
|
||
// TODO: should we replace Error for no_std environments | ||
// use core::error::Error; | ||
|
||
use num_traits::float::FloatCore; | ||
|
||
use core::f64::consts::PI; | ||
use core::f32::consts::PI as PI_f32; | ||
use core::f64::DIGITS; | ||
use core::f32::DIGITS as DIGITS_f32; | ||
|
||
use core::i8::{MAX, MIN}; |