Skip to content

Commit

Permalink
fix: add module type to loaded_modules when auto_register_xxx met…
Browse files Browse the repository at this point in the history
…hod is called
  • Loading branch information
ZihanType committed Sep 5, 2023
1 parent 0093e4a commit e88adbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rudi/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,7 @@ impl ContextOptions {

let mut cx = self.inner_create(|cx| {
let module = ResolveModule::new::<AutoRegisterModule>();
cx.loaded_modules.push(module.ty());
cx.load_providers(module.eager_create(), module.providers())
});

Expand Down Expand Up @@ -1710,6 +1711,7 @@ impl ContextOptions {

let mut cx = self.inner_create(|cx| {
let module = ResolveModule::new::<AutoRegisterModule>();
cx.loaded_modules.push(module.ty());
cx.load_providers(module.eager_create(), module.providers())
});

Expand Down

0 comments on commit e88adbd

Please sign in to comment.