From 117f5d22a6450cac09f0fa8702ac78a217e78893 Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu Date: Fri, 13 Oct 2023 16:21:18 -0400 Subject: [PATCH] Cleanup --- compiler/passes/src/code_generation/visit_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/passes/src/code_generation/visit_type.rs b/compiler/passes/src/code_generation/visit_type.rs index d63f5d70e2..8b5f9309c4 100644 --- a/compiler/passes/src/code_generation/visit_type.rs +++ b/compiler/passes/src/code_generation/visit_type.rs @@ -44,7 +44,7 @@ impl<'a> CodeGenerator<'a> { } } - pub(crate) fn visit_type_with_visibility(&mut self, type_: &'a Type, visibility: Mode) -> String { + pub(crate) fn visit_type_with_visibility(&self, type_: &'a Type, visibility: Mode) -> String { match type_ { // When the type is a record. // Note that this unwrap is safe because all composite types have been added to the mapping.