refactored import syntax
This commit is contained in:
+1
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user