From b00dee4ecfffb511def4f1f4d7934ffe17113407 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 19 Jan 2019 13:38:08 -0800 Subject: [PATCH] Use PhantomData from libcore in examples --- README.md | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b32c504..ce4a977 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ most Rust primitive types as well as most of the syntax tree types from [`syn`]. let tokens = quote! { struct SerializeWith #generics #where_clause { value: &'a #field_ty, - phantom: ::std::marker::PhantomData<#item_ty>, + phantom: core::marker::PhantomData<#item_ty>, } impl #generics serde::Serialize for SerializeWith #generics #where_clause { @@ -73,7 +73,7 @@ let tokens = quote! { SerializeWith { value: #value, - phantom: ::std::marker::PhantomData::<#item_ty>, + phantom: core::marker::PhantomData::<#item_ty>, } }; ``` diff --git a/src/lib.rs b/src/lib.rs index 8f0203b..9327e08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,7 @@ //! let tokens = quote! { //! struct SerializeWith #generics #where_clause { //! value: &'a #field_ty, -//! phantom: ::std::marker::PhantomData<#item_ty>, +//! phantom: core::marker::PhantomData<#item_ty>, //! } //! //! impl #generics serde::Serialize for SerializeWith #generics #where_clause { @@ -77,7 +77,7 @@ //! //! SerializeWith { //! value: #value, -//! phantom: ::std::marker::PhantomData::<#item_ty>, +//! phantom: core::marker::PhantomData::<#item_ty>, //! } //! }; //! #