Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Feb 25, 2024
1 parent e819040 commit 958e287
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion rust/src/base/stdlib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::{codegen::Opcode, error::*};
use crate::{
base::error::{ARGUMENT_ERROR, ARGU_NUMBER, EXPECT_TYPE},
compiler::{
scope::{Type, TypeAllowNull, Var},
token::TokenType,
Expand Down
2 changes: 0 additions & 2 deletions rust/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ pub mod llvm_convent;
pub mod scope;
pub mod token;

use rust_i18n::t;

use self::token::TokenLex;
use crate::base::codegen::{ConstPool, StaticData};
use crate::base::error::*;
Expand Down
1 change: 0 additions & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use rust_i18n::t;
use trc::run;

fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand Down
4 changes: 2 additions & 2 deletions rust/src/tvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ mod types;
use self::types::trcfloat::{div_float, exact_div_float, TrcFloat};
use self::types::trcint::{div_int, exact_div_int, mod_int, power_int, TrcInt};
use self::types::trcstr::TrcStr;
use self::types::{TrcBool, TrcChar, TrcObj};
use crate::base::codegen::{self, Opcode, StaticData};
use self::types::{TrcBool, TrcChar};
use crate::base::codegen::{Opcode, StaticData};
use crate::base::stdlib::STD_FUNC_TABLE;
use crate::{base::error::*, cfg};
use libloading::Library;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/tvm/types/data_structure/sam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::base::stdlib::{OverrideWrapper, RustFunction};
use crate::tvm::types::trcchar::TrcChar;
use crate::tvm::types::TrcObj;
use crate::tvm::DynaData;
use crate::{base::stdlib::IOType, compiler::token::TokenType, hash_map};
use crate::{compiler::token::TokenType, hash_map};
use derive::{trc_class, trc_function, trc_method};
use std::collections::HashMap;
use std::fmt::Display;
Expand Down
1 change: 0 additions & 1 deletion rust/src/tvm/types/trcbool.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::TrcObj;
use crate::base::error::*;
use crate::base::error::{ErrorInfo, OPERATOR_ERROR, OPERATOR_IS_NOT_SUPPORT};
use crate::base::stdlib::*;
use crate::compiler::scope::TypeAllowNull;
use crate::compiler::token::TokenType;
Expand Down

0 comments on commit 958e287

Please sign in to comment.