mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 12:47:56 +00:00
Fix a compile error in derive(Deserialize) with no_std + alloc
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ pub use lib::result::Result::{self, Err, Ok};
|
|||||||
pub use self::string::from_utf8_lossy;
|
pub use self::string::from_utf8_lossy;
|
||||||
|
|
||||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||||
pub use lib::Vec;
|
pub use lib::{ToString, Vec};
|
||||||
|
|
||||||
mod string {
|
mod string {
|
||||||
use lib::*;
|
use lib::*;
|
||||||
|
|||||||
@@ -2059,7 +2059,7 @@ fn deserialize_identifier(
|
|||||||
) = if collect_other_fields {
|
) = if collect_other_fields {
|
||||||
(
|
(
|
||||||
Some(quote! {
|
Some(quote! {
|
||||||
let __value = _serde::private::de::Content::String(__value.to_string());
|
let __value = _serde::private::de::Content::String(_serde::export::ToString::to_string(__value));
|
||||||
}),
|
}),
|
||||||
Some(quote! {
|
Some(quote! {
|
||||||
let __value = _serde::private::de::Content::Str(__value);
|
let __value = _serde::private::de::Content::Str(__value);
|
||||||
|
|||||||
Reference in New Issue
Block a user