Fix: visibility spacing

This commit is contained in:
2026-05-18 21:42:22 +02:00
parent d1330500b2
commit c5d8c12c14
+2 -2
View File
@@ -384,9 +384,9 @@ impl ToRust for TopLevelKind {
match self { match self {
Self::ModAttribute => {} Self::ModAttribute => {}
Self::Import(vis, path) => { Self::Import(vis, path) => {
cg.addln(&format!("{} use {};", vis.get_rust(), path.get_rust())) cg.addln(&format!("{}use {};", vis.get_rust(), path.get_rust()))
} }
Self::Mod(vis, id) => cg.addln(&format!("{} mod {};", vis.get_rust(), id.get_rust())), Self::Mod(vis, id) => cg.addln(&format!("{}mod {};", vis.get_rust(), id.get_rust())),
Self::FunctionDecl(decl) => decl.to_rust(cg), Self::FunctionDecl(decl) => decl.to_rust(cg),
Self::ImplDecl(impl_) => impl_.to_rust(cg), Self::ImplDecl(impl_) => impl_.to_rust(cg),
Self::StructDecl { Self::StructDecl {