Remove std::i64 imports

This commit is contained in:
David Tolnay 2018-06-17 11:42:24 -07:00
parent 6e0a9b6ff2
commit f12c983942
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 4 additions and 15 deletions

View File

@ -10,7 +10,6 @@ use error::Error;
use serde::de::{self, Unexpected, Visitor};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use std::fmt::{self, Debug, Display};
use std::i64;
#[cfg(feature = "arbitrary_precision")]
use dtoa;
@ -64,10 +63,8 @@ impl Number {
/// # #[macro_use]
/// # extern crate serde_json;
/// #
/// # use std::i64;
/// #
/// # fn main() {
/// let big = i64::MAX as u64 + 10;
/// let big = i64::max_value() as u64 + 10;
/// let v = json!({ "a": 64, "b": big, "c": 256.0 });
///
/// assert!(v["a"].is_i64());
@ -170,10 +167,8 @@ impl Number {
/// # #[macro_use]
/// # extern crate serde_json;
/// #
/// # use std::i64;
/// #
/// # fn main() {
/// let big = i64::MAX as u64 + 10;
/// let big = i64::max_value() as u64 + 10;
/// let v = json!({ "a": 64, "b": big, "c": 256.0 });
///
/// assert_eq!(v["a"].as_i64(), Some(64));

View File

@ -8,7 +8,6 @@
use std::borrow::Cow;
use std::fmt;
use std::i64;
use std::slice;
use std::str;
use std::vec;

View File

@ -108,7 +108,6 @@
//! [from_reader]: https://docs.serde.rs/serde_json/de/fn.from_reader.html
use std::fmt::{self, Debug};
use std::i64;
use std::io;
use std::mem;
use std::str;
@ -589,10 +588,8 @@ impl Value {
/// # #[macro_use]
/// # extern crate serde_json;
/// #
/// # use std::i64;
/// #
/// # fn main() {
/// let big = i64::MAX as u64 + 10;
/// let big = i64::max_value() as u64 + 10;
/// let v = json!({ "a": 64, "b": big, "c": 256.0 });
///
/// assert!(v["a"].is_i64());
@ -675,10 +672,8 @@ impl Value {
/// # #[macro_use]
/// # extern crate serde_json;
/// #
/// # use std::i64;
/// #
/// # fn main() {
/// let big = i64::MAX as u64 + 10;
/// let big = i64::max_value() as u64 + 10;
/// let v = json!({ "a": 64, "b": big, "c": 256.0 });
///
/// assert_eq!(v["a"].as_i64(), Some(64));