From 8f7ef3ff69c7942c35aa03835f7cb3b4dc05c45a Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 14 Jan 2022 15:48:10 +0100 Subject: [PATCH] Repair case-conversion of type names for names like "IOList" -> "IoList" --- .../rust/preserves-schema/src/compiler/context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implementations/rust/preserves-schema/src/compiler/context.rs b/implementations/rust/preserves-schema/src/compiler/context.rs index f54c277..57859b2 100644 --- a/implementations/rust/preserves-schema/src/compiler/context.rs +++ b/implementations/rust/preserves-schema/src/compiler/context.rs @@ -182,16 +182,16 @@ impl<'m, 'b> ModuleContext<'m, 'b> { let base = match self.bundle.config.external_modules.get(&r.module.0) { None => if r.module.0.is_empty() { - item(r.name.to_owned()) + item(names::render_constructor(&r.name)) } else { let mut items = Vec::new(); items.push(item(self.bundle.config.fully_qualified_module_prefix.to_owned())); for p in &r.module.0 { items.push(item(names::render_modname(p))) } - items.push(item(r.name.to_owned())); + items.push(item(names::render_constructor(&r.name))); item(name(items)) } Some(xm) => - item(name![xm.rust_namespace.clone(), r.name.to_owned()]) + item(name![xm.rust_namespace.clone(), names::render_constructor(&r.name)]) }; let q = self.ref_has_embedded(r); match style {