Skip to content

Commit

Permalink
Remove Any
Browse files Browse the repository at this point in the history
  • Loading branch information
k88hudson-cfa committed Aug 19, 2024
1 parent 4870f23 commit 1d01a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ macro_rules! define_rng {
}
pub use define_rng;

pub trait RngId: Any {
pub trait RngId {
type RngType: SeedableRng;
fn get_name() -> &'static str;
}
Expand Down Expand Up @@ -57,7 +57,7 @@ crate::context::define_data_plugin!(
pub trait ContextRandomExt {
fn init_random(&mut self, base_seed: u64);

fn get_rng<R: RngId>(&self) -> RefMut<R::RngType>;
fn get_rng<R: RngId + 'static>(&self) -> RefMut<R::RngType>;
}

impl ContextRandomExt for Context {
Expand Down

0 comments on commit 1d01a69

Please sign in to comment.