Skip to content

Commit

Permalink
refactor: use ::core instead of core (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Dec 12, 2023
1 parent 72c8769 commit ef34367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ctor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ pub fn ctor(_attribute: TokenStream, function: TokenStream) -> TokenStream {
#[doc(hidden)]
#[allow(non_camel_case_types)]
#vis struct #ident<T> {
_data: core::marker::PhantomData<T>
_data: ::core::marker::PhantomData<T>
}

#(#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 {
Expand Down

0 comments on commit ef34367

Please sign in to comment.