summaryrefslogtreecommitdiff
path: root/src/dump_as_rust.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r--src/dump_as_rust.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp
index 3c3a215d..8c79c744 100644
--- a/src/dump_as_rust.cpp
+++ b/src/dump_as_rust.cpp
@@ -561,6 +561,9 @@ void RustPrinter::handle_module(const AST::Module& mod)
// m_os << "\n";
// need_nl = false;
//}
+ if( i.data.path == AST::Path() ) {
+ continue ;
+ }
m_os << indent() << (i.is_pub ? "pub " : "") << "use " << i.data;
if( i.name == "" )
{