Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brockelmore committed Jul 18, 2024
1 parent 2daf5c3 commit 615ad5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/solc-expressions/src/func_call/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ pub trait CallerHelper: AnalyzerBackend<Expr = Expression, ExprErr = ExprErr> +
tmp_literals[target_idx] = literals[i];
});
} else {
tmp_inputs = inputs.clone();
tmp_literals = literals.clone();
tmp_inputs.clone_from(&inputs);
tmp_literals.clone_from(&literals);
}
} else {
tmp_inputs = inputs.clone();
tmp_literals = literals.clone();
tmp_inputs.clone_from(&inputs);
tmp_literals.clone_from(&literals);
}

params
Expand Down
2 changes: 1 addition & 1 deletion crates/solc-expressions/src/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ mod tests {

#[test]
fn test_hex_literals_multiple() -> Result<()> {
let hex_literals = vec![
let hex_literals = [
HexLiteral {
hex: "7B".to_string(), // 123 in decimal
loc: Loc::File(0, 0, 0),
Expand Down

0 comments on commit 615ad5e

Please sign in to comment.