From ef34367e5776821028f92ea874950f1216dcf37b Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Tue, 12 Dec 2023 10:49:54 +0800 Subject: [PATCH] refactor: use ::core instead of core (#296) --- ctor/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctor/src/lib.rs b/ctor/src/lib.rs index dd88731..67b21f9 100644 --- a/ctor/src/lib.rs +++ b/ctor/src/lib.rs @@ -239,15 +239,15 @@ pub fn ctor(_attribute: TokenStream, function: TokenStream) -> TokenStream { #[doc(hidden)] #[allow(non_camel_case_types)] #vis struct #ident { - _data: core::marker::PhantomData + _data: ::core::marker::PhantomData } #(#attrs)* #vis static #ident: #ident<#ty> = #ident { - _data: core::marker::PhantomData::<#ty> + _data: ::core::marker::PhantomData::<#ty> }; - impl core::ops::Deref for #ident<#ty> { + impl ::core::ops::Deref for #ident<#ty> { type Target = #ty; fn deref(&self) -> &'static #ty { unsafe {