Skip to content

Commit

Permalink
chore: fix ci issues (bluealloy#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing authored May 30, 2024
1 parent 4be2578 commit deb253b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 135 deletions.
132 changes: 0 additions & 132 deletions .github/workflows/book.yml

This file was deleted.

1 change: 1 addition & 0 deletions bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ fn check_evm_execution<EXT>(
Ok(())
}

#[allow(clippy::assigning_clones)]
pub fn execute_test_suite(
path: &Path,
elapsed: &Arc<Mutex<Duration>>,
Expand Down
1 change: 1 addition & 0 deletions crates/interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ impl Interpreter {
/// - `return_revert!()`: Handles a revert by only updating the gas usage and shared memory.
/// - `InstructionResult::FatalExternalError`: Sets the instruction result to a fatal external error.
/// - Any other result: No specific action is taken.
#[allow(clippy::assigning_clones)]
pub fn insert_call_outcome(
&mut self,
shared_memory: &mut SharedMemory,
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/db/in_memory_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ mod tests {
let serialized = serde_json::to_string(&init_state).unwrap();
let deserialized: CacheDB<EmptyDB> = serde_json::from_str(&serialized).unwrap();

assert!(deserialized.accounts.get(&account).is_some());
assert!(deserialized.accounts.contains_key(&account));
assert_eq!(
deserialized.accounts.get(&account).unwrap().info.nonce,
nonce
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/db/states/transition_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl TransitionAccount {
/// Update new values of transition. Don't override old values.
/// Both account info and old storages need to be left intact.
pub fn update(&mut self, other: Self) {
self.info = other.info.clone();
self.info.clone_from(&other.info);
self.status = other.status;

// if transition is from some to destroyed drop the storage.
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/inspector/eip3155.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<DB: Database> Inspector<DB> for TracerEip3155 {

fn step(&mut self, interp: &mut Interpreter, context: &mut EvmContext<DB>) {
self.gas_inspector.step(interp, context);
self.stack = interp.stack.data().clone();
self.stack.clone_from(interp.stack.data());
self.memory = if self.include_memory {
Some(hex::encode_prefixed(interp.shared_memory.context_memory()))
} else {
Expand Down

0 comments on commit deb253b

Please sign in to comment.