refactored import syntax

This commit is contained in:
2026-05-07 18:08:58 +02:00
parent 4a5f3b7445
commit 2ccec652da
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ impl ToRust for TopLevelKind {
fn to_rust(&self, cg: &mut RustCodegen) {
match self {
Self::ModAttribute => {}
Self::Include(path) => {
Self::Import(path) => {
cg.addln(&format!("use {};", path.get_rust()));
}
Self::FunctionDecl(decl) => decl.to_rust(cg),