Skip to content

Commit

Permalink
refactor(loader): fix warnings by 'cargo clippy' for loader (#999)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Kumar <[email protected]>
  • Loading branch information
octonawish-akcodes authored Jan 24, 2024
1 parent 38ba669 commit 9c746e9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
1 change: 0 additions & 1 deletion kclvm/ast/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
2 changes: 1 addition & 1 deletion kclvm/loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn collect_scope_info(
kind
};
scopes.insert(
scope_ref.clone(),
*scope_ref,
ScopeInfo {
kind,
parent: scope.get_parent(),
Expand Down
3 changes: 0 additions & 3 deletions kclvm/runtime/src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -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::*;
17 changes: 0 additions & 17 deletions kclvm/runtime/src/value/mod.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand All @@ -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::*;
Expand All @@ -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::*;
Expand Down

0 comments on commit 9c746e9

Please sign in to comment.