Skip to content

Commit

Permalink
Revert "Fix the macro only can be used in package."
Browse files Browse the repository at this point in the history
This reverts commit 4f638dc.
  • Loading branch information
bloodnighttw committed Jul 12, 2024
1 parent cf165af commit 75924f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reginleif-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn impl_expire(ast:ItemStruct) -> TokenStream{
let ident2 = duration_filed.ident.clone().unwrap();

let token = quote::quote! {
impl reginleif::utils::expiring_data::Expirable for #ident{
impl crate::utils::expiring_data::Expirable for #ident{
fn get_duration(&self) -> std::time::Duration {
self.#ident2
}
Expand All @@ -40,7 +40,7 @@ pub fn refresh_panic(item:TokenStream) -> TokenStream{
let ident = ast.ident;
let token = quote::quote! {
#[async_trait::async_trait]
impl reginleif::utils::expiring_data::Refreshable for #ident{
impl crate::utils::expiring_data::Refreshable for #ident{

type Args = ();

Expand Down

0 comments on commit 75924f7

Please sign in to comment.