Skip to content

Commit

Permalink
rename component generator registry arg (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohad-starkware committed Jul 3, 2024
1 parent 6cef1fb commit 0fc6368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/prover/src/trace_generation/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pub struct ComponentGenerationRegistry {
}

impl ComponentGenerationRegistry {
pub fn register(&mut self, component_id: &str, component: impl ComponentGen) {
pub fn register(&mut self, component_id: &str, component_generator: impl ComponentGen) {
self.components
.insert(component_id.to_string(), Box::new(component));
.insert(component_id.to_string(), Box::new(component_generator));
}

pub fn get_generator<T: ComponentGen>(&self, component_id: &str) -> &T {
Expand Down

0 comments on commit 0fc6368

Please sign in to comment.