Skip to content

Commit

Permalink
Increase visibility of macro and ease import
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonasher committed Jun 12, 2024
1 parent 52e69b2 commit d263c61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ macro_rules! define_random_id {
($random_id:ident) => {
struct $random_id {}

impl RandomId for $random_id {
impl $crate::random::RandomId for $random_id {
type RngType = rand::rngs::StdRng;

fn get_name() -> &'static str {
Expand All @@ -18,6 +18,7 @@ macro_rules! define_random_id {
}
};
}
pub use define_random_id;

pub trait RandomId: Any {
type RngType: SeedableRng;
Expand Down

0 comments on commit d263c61

Please sign in to comment.