Fixed lifetime on ref
This commit is contained in:
@@ -240,7 +240,7 @@ impl GetRust for TypeExpr {
|
|||||||
match lifetime {
|
match lifetime {
|
||||||
Lifetime::Lifetime(v) => {
|
Lifetime::Lifetime(v) => {
|
||||||
format!(
|
format!(
|
||||||
"&{} {}{}",
|
"&'{} {}{}",
|
||||||
v.get_rust(),
|
v.get_rust(),
|
||||||
if *mutable { "mut " } else { "" },
|
if *mutable { "mut " } else { "" },
|
||||||
ty.get_rust()
|
ty.get_rust()
|
||||||
|
|||||||
Reference in New Issue
Block a user