Importing

This commit is contained in:
2026-05-04 19:29:10 +02:00
parent 544074c26e
commit c717a57f99
4 changed files with 12 additions and 12 deletions
+2 -3
View File
@@ -195,9 +195,8 @@ impl ToRust for Block {
impl ToRust for TopLevel {
fn to_rust(&self, cg: &mut RustCodegen) {
match self {
TopLevel::Import(path) => {
let path = path.replace('"', "");
cg.addln(&format!("use {};", path));
TopLevel::Include(path) => {
cg.addln(&format!("use {};", path.get_rust()));
}
TopLevel::StructDecl {