Fixed bugs
This commit is contained in:
@@ -188,18 +188,18 @@ impl GetMist for TypeExpr {
|
||||
match lifetime {
|
||||
Lifetime::Lifetime(v) => {
|
||||
format!(
|
||||
"{} &'{} {}",
|
||||
"{} {} '{}&",
|
||||
base,
|
||||
v.get_mist(),
|
||||
if *mutable { "mut" } else { "" }
|
||||
if *mutable { "mut" } else { "" },
|
||||
v.get_mist()
|
||||
)
|
||||
}
|
||||
Lifetime::Unsafe => {
|
||||
format!("{} *{}", base, if *mutable { "mut" } else { "const" })
|
||||
format!("{} {} unsafe&", base, if *mutable { "mut" } else { "const" })
|
||||
}
|
||||
}
|
||||
} else if *mutable {
|
||||
format!("{} &mut", base)
|
||||
format!("{} mut&", base)
|
||||
} else {
|
||||
format!("{}&", base)
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ impl GenMist for Statement {
|
||||
body.gen_mist(ctx, cg);
|
||||
cg.addln("");
|
||||
} else {
|
||||
ctx.expr_ensure_semicolon = false;
|
||||
body.gen_mist(ctx, cg);
|
||||
cg.addln(",");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user