This commit is contained in:
2026-05-07 18:15:48 +02:00
parent 2ccec652da
commit 27c6eb74c3
5 changed files with 10 additions and 15 deletions
+2 -3
View File
@@ -308,9 +308,8 @@ impl ToRust for TopLevelKind {
fn to_rust(&self, cg: &mut RustCodegen) {
match self {
Self::ModAttribute => {}
Self::Import(path) => {
cg.addln(&format!("use {};", path.get_rust()));
}
Self::Import(path) => cg.addln(&format!("use {};", path.get_rust())),
Self::Mod(id) => cg.addln(&format!("mod {};", id)),
Self::FunctionDecl(decl) => decl.to_rust(cg),
Self::StructDecl {
visibility,