浏览代码

Export all of the public items in namespace

* This pull request re-exports all of the public items in the namespace
module. This is required for example in the `traverse` method it
requires the closure to take a namespace level which is private (not
exported) so, when we try to access the `typ` field on it, we are not
able to access it.

Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
Andy-Python-Programmer 3 年之前
父节点
当前提交
e1a8c12d0d
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      aml/src/lib.rs

+ 1 - 6
aml/src/lib.rs

@@ -56,17 +56,13 @@ pub(crate) mod type1;
 pub(crate) mod type2;
 pub mod value;
 
-pub use crate::{
-    namespace::{AmlHandle, AmlName, Namespace},
-    value::AmlValue,
-};
+pub use crate::{namespace::*, value::AmlValue};
 
 use alloc::{boxed::Box, string::ToString};
 use core::mem;
 use log::{error, warn};
 use misc::{ArgNum, LocalNum};
 use name_object::Target;
-use namespace::LevelType;
 use parser::{Parser, Propagate};
 use pkg_length::PkgLength;
 use term_object::term_list;
@@ -236,7 +232,6 @@ impl AmlContext {
     // TODO: docs
     pub fn initialize_objects(&mut self) -> Result<(), AmlError> {
         use name_object::NameSeg;
-        use namespace::NamespaceLevel;
         use value::StatusObject;
 
         /*