diff --git a/hugr-cli/src/validate.rs b/hugr-cli/src/validate.rs index dcb13c703..badebb8d8 100644 --- a/hugr-cli/src/validate.rs +++ b/hugr-cli/src/validate.rs @@ -57,13 +57,13 @@ impl Package { /// /// Returns the validated modules. pub fn validate(mut self, reg: &mut ExtensionRegistry) -> Result, ValError> { - // register packed extension + // register packed extensions for ext in self.extensions { reg.register_updated(ext)?; } for hugr in self.modules.iter_mut() { - hugr.update_validate(®)?; + hugr.update_validate(reg)?; } Ok(self.modules)