Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Wang committed Oct 2, 2024
1 parent 8836031 commit afbb202
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions third_party/move/move-compiler/src/expansion/translate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2675,7 +2675,8 @@ fn exp_(context: &mut Context, sp!(loc, pe_): P::Exp) -> E::Exp {
EE::Name(module_access.clone(), ty_opt.clone()),
);
// t, let t = e;
let (t, bind) = let_symbol_eq_exp(er.loc, Symbol::from("$t"), *er);
let (t, bind) =
let_symbol_eq_exp(er.loc, Symbol::from("$t"), *er);
// x + t;
let rhs_expanded =
sp(loc, EE::BinopExp(Box::new(x), op, Box::new(t)));
Expand Down Expand Up @@ -2735,8 +2736,7 @@ fn exp_(context: &mut Context, sp!(loc, pe_): P::Exp) -> E::Exp {
Some(op) => {
let lhs_loc = edotted.loc;
// t2, let t2 = e2;
let (tmp2, bind2) =
let_symbol_eq_exp(er.loc, Symbol::from("$t2"), *er);
let (tmp2, bind2) = let_symbol_eq_exp(er.loc, Symbol::from("$t2"), *er);
// e1.f
let e = sp(lhs_loc, EE::ExpDotted(edotted));
// &mut e1.f
Expand Down
6 changes: 3 additions & 3 deletions third_party/move/move-model/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ impl FromStr for LanguageVersion {
}
}

impl Into<CompilerLanguageVersion> for LanguageVersion {
fn into(self) -> CompilerLanguageVersion {
match self {
impl From<LanguageVersion> for CompilerLanguageVersion {
fn from(val: LanguageVersion) -> Self {
match val {
LanguageVersion::V1 => CompilerLanguageVersion::V1,
LanguageVersion::V2_0 => CompilerLanguageVersion::V2_0,
LanguageVersion::V2_1 => CompilerLanguageVersion::V2_1,
Expand Down

0 comments on commit afbb202

Please sign in to comment.