diff --git a/kclvm/ast/src/token.rs b/kclvm/ast/src/token.rs index a083b9e6d..59b5ea7a1 100644 --- a/kclvm/ast/src/token.rs +++ b/kclvm/ast/src/token.rs @@ -4,7 +4,6 @@ //! Including indent and dedent tokens. //! Not Include some tokens of low level tokens, such as ';', '..', '..=', '<-'. pub use BinCmpToken::*; -pub use BinCmpToken::*; pub use BinOpToken::*; pub use DelimToken::*; pub use LitKind::*; diff --git a/kclvm/loader/src/lib.rs b/kclvm/loader/src/lib.rs index 7e39086a3..9b12a89bd 100644 --- a/kclvm/loader/src/lib.rs +++ b/kclvm/loader/src/lib.rs @@ -222,7 +222,7 @@ fn collect_scope_info( kind }; scopes.insert( - scope_ref.clone(), + *scope_ref, ScopeInfo { kind, parent: scope.get_parent(), diff --git a/kclvm/runtime/src/types/mod.rs b/kclvm/runtime/src/types/mod.rs index 1233f2678..560b722bf 100644 --- a/kclvm/runtime/src/types/mod.rs +++ b/kclvm/runtime/src/types/mod.rs @@ -1,10 +1,7 @@ // Copyright The KCL Authors. All rights reserved. pub mod typ_kind; -pub use typ_kind::*; pub mod typ_new; -pub use typ_new::*; pub mod typ_type_str; -pub use typ_type_str::*; diff --git a/kclvm/runtime/src/value/mod.rs b/kclvm/runtime/src/value/mod.rs index 3ff12728d..64425c8be 100644 --- a/kclvm/runtime/src/value/mod.rs +++ b/kclvm/runtime/src/value/mod.rs @@ -1,7 +1,6 @@ // Copyright 2021 The KCL Authors. All rights reserved. pub mod val_panic; -pub use val_panic::*; pub mod val_overflow; pub use val_overflow::*; @@ -13,49 +12,37 @@ pub mod iter; pub use iter::*; pub mod val; -pub use val::*; pub mod val_len; -pub use val_len::*; pub mod val_args; pub use val_args::*; pub mod val_logic; -pub use val_logic::*; pub mod val_as_val; -pub use val_as_val::*; pub mod val_kind; -pub use val_kind::*; pub mod val_clone; -pub use val_clone::*; pub mod val_cmp; -pub use val_cmp::*; pub mod val_decorator; pub use val_decorator::*; pub mod val_is_in; -pub use val_is_in::*; pub mod val_list; -pub use val_list::*; pub mod val_dict; -pub use val_dict::*; pub mod val_fmt; pub use val_fmt::*; pub mod val_from; -pub use val_from::*; pub mod val_get_set; -pub use val_get_set::*; pub mod val_schema; pub use val_schema::*; @@ -64,19 +51,15 @@ pub mod val_json; pub use val_json::*; pub mod val_bin_aug; -pub use val_bin_aug::*; pub mod val_unary; -pub use val_unary::*; pub mod val_bin; -pub use val_bin::*; pub mod val_plan; pub use val_plan::*; pub mod val_str; -pub use val_str::*; pub mod val_type; pub use val_type::*;