Fixed type bugs #65

This commit is contained in:
2026-06-05 17:39:41 +02:00
parent b559215212
commit cac497a560
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ impl GetRust for TypeExpr {
let mutable = if *mutable { "mut " } else { "" };
if let Some(lifetime) = lifetime {
format!("&{}{mutable}{}", lifetime.get_rust(), ty.get_rust())
format!("&'{} {mutable}{}", lifetime.get_rust(), ty.get_rust())
} else {
format!("&{mutable}{}", ty.get_rust())
}