mirror of
https://github.com/serde-rs/json.git
synced 2026-03-06 22:09:18 +00:00
Update imports in lexical module
This commit is contained in:
parent
f13f24048b
commit
8262a63e8e
@ -7,10 +7,10 @@ use super::bignum::*;
|
||||
use super::digit::*;
|
||||
use super::exponent::*;
|
||||
use super::float::*;
|
||||
use super::lib::{cmp, mem};
|
||||
use super::math::*;
|
||||
use super::num::*;
|
||||
use super::rounding::*;
|
||||
use crate::lib::{cmp, mem};
|
||||
|
||||
// MANTISSA
|
||||
|
||||
|
||||
@ -6,9 +6,9 @@
|
||||
//! found here:
|
||||
//! https://golang.org/src/strconv/atof.go
|
||||
|
||||
use crate::float::*;
|
||||
use crate::num::*;
|
||||
use crate::rounding::*;
|
||||
use super::float::*;
|
||||
use super::num::*;
|
||||
use super::rounding::*;
|
||||
|
||||
pub(crate) trait FloatErrors {
|
||||
/// Get the full error scale.
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
//! buffers, so for a `vec![0, 1, 2, 3]`, `3` is the most significant limb,
|
||||
//! and `0` is the least significant limb.
|
||||
|
||||
use crate::large_powers;
|
||||
use crate::lib::{cmp, iter, mem, ptr};
|
||||
use crate::num::*;
|
||||
use crate::slice::*;
|
||||
use crate::small_powers::*;
|
||||
use super::large_powers;
|
||||
use super::lib::{cmp, iter, mem, ptr};
|
||||
use super::num::*;
|
||||
use super::slice::*;
|
||||
use super::small_powers::*;
|
||||
|
||||
// ALIASES
|
||||
// -------
|
||||
@ -69,7 +69,7 @@ pub(crate) type LimbVecType = arrayvec::ArrayVec<[Limb; 128]>;
|
||||
pub(crate) type LimbVecType = arrayvec::ArrayVec<[Limb; 64]>;
|
||||
|
||||
#[cfg(not(no_alloc))]
|
||||
pub(crate) type LimbVecType = crate::lib::Vec<Limb>;
|
||||
pub(crate) type LimbVecType = super::lib::Vec<Limb>;
|
||||
|
||||
/// Cast to limb type.
|
||||
#[inline(always)]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
//! Utilities for Rust numbers.
|
||||
|
||||
use crate::lib::ops;
|
||||
use super::lib::ops;
|
||||
|
||||
/// Precalculated values of radix**i for i in range [0, arr.len()-1].
|
||||
/// Each value can be **exactly** represented as that type.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
//! Defines rounding schemes for floating-point numbers.
|
||||
|
||||
use super::float::ExtendedFloat;
|
||||
use super::lib::mem;
|
||||
use super::num::*;
|
||||
use super::shift::*;
|
||||
use crate::lib::mem;
|
||||
|
||||
// MASKS
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
//! Bit-shift helpers.
|
||||
|
||||
use super::float::ExtendedFloat;
|
||||
use crate::lib::mem;
|
||||
use super::lib::mem;
|
||||
|
||||
// Shift extended-precision float right `shift` bytes.
|
||||
#[inline]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
//! Traits to accept generic slices.
|
||||
|
||||
use crate::lib::ops;
|
||||
use super::lib::ops;
|
||||
|
||||
// RSLICE INDEX
|
||||
|
||||
@ -141,7 +141,7 @@ impl<A: arrayvec::Array> Slice<A::Item> for arrayvec::ArrayVec<A> {
|
||||
}
|
||||
|
||||
#[cfg(not(no_alloc))]
|
||||
impl<T> Slice<T> for crate::lib::Vec<T> {
|
||||
impl<T> Slice<T> for super::lib::Vec<T> {
|
||||
#[inline]
|
||||
fn as_slice(&self) -> &[T] {
|
||||
self
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user