Skip to content

Commit

Permalink
Reorganize number.rs imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 9, 2022
1 parent 8ab65c5 commit 99d6164
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/number.rs
@@ -1,25 +1,22 @@
use crate::de::ParserNumber;
use crate::error::Error;
#[cfg(feature = "arbitrary_precision")]
use crate::error::ErrorCode;
#[cfg(feature = "arbitrary_precision")]
use alloc::borrow::ToOwned;
#[cfg(feature = "arbitrary_precision")]
use alloc::string::{String, ToString};
use core::fmt::{self, Debug, Display};
#[cfg(not(feature = "arbitrary_precision"))]
use core::hash::{Hash, Hasher};
use serde::de::{self, Unexpected, Visitor};
#[cfg(feature = "arbitrary_precision")]
use serde::de::{IntoDeserializer, MapAccess};
use serde::{
forward_to_deserialize_any, serde_if_integer128, Deserialize, Deserializer, Serialize,
Serializer,
};

#[cfg(feature = "arbitrary_precision")]
use crate::error::ErrorCode;
#[cfg(feature = "arbitrary_precision")]
use serde::de::{IntoDeserializer, MapAccess};

#[cfg(feature = "arbitrary_precision")]
use alloc::{
borrow::ToOwned,
string::{String, ToString},
};

#[cfg(feature = "arbitrary_precision")]
pub(crate) const TOKEN: &str = "$serde_json::private::Number";

Expand Down

0 comments on commit 99d6164

Please sign in to comment.