Skip to content

Commit

Permalink
Merge pull request #37 from Jesse-Bakker/vis
Browse files Browse the repository at this point in the history
`use` DynTrait with visibility of original trait
  • Loading branch information
tmandry authored Dec 17, 2024
2 parents d69e33c + 3c17ac3 commit 3576fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynosaur_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ pub fn dynosaur(
}
}

let vis = &item_trait.vis;
let struct_ident = &attrs.ident;
let expanded_trait_to_dyn = expand_trait_async_fns_to_dyn(&item_trait);
let erased_trait = mk_erased_trait(&expanded_trait_to_dyn);
Expand Down Expand Up @@ -178,7 +179,7 @@ pub fn dynosaur(
#struct_inherent_impl
}

use #dynosaur_mod::#struct_ident;
#vis use #dynosaur_mod::#struct_ident;
}
.into()
}
Expand Down

0 comments on commit 3576fd2

Please sign in to comment.