From 1d731a9a06174bbc160e48b7b4b5d1887e571227 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Mon, 5 Sep 2022 11:03:43 +0000 Subject: [PATCH] arbitrary_precision without std --- src/number.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/number.rs b/src/number.rs index df8819259..cfb6ca493 100644 --- a/src/number.rs +++ b/src/number.rs @@ -14,6 +14,11 @@ use crate::error::ErrorCode; #[cfg(feature = "arbitrary_precision")] use serde::de::{IntoDeserializer, MapAccess}; +use alloc::{ + borrow::ToOwned, + string::{String, ToString}, +}; + #[cfg(feature = "arbitrary_precision")] pub(crate) const TOKEN: &str = "$serde_json::private::Number";