Skip to content

Commit a21d64e

Browse files
authored
fix: remove wrong Clone Macro in WrapDatabaseRef (#2181)
1 parent 7f34589 commit a21d64e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

crates/database/interface/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub trait DatabaseRef {
8282
}
8383

8484
/// Wraps a [`DatabaseRef`] to provide a [`Database`] implementation.
85-
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
85+
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
8686
pub struct WrapDatabaseRef<T: DatabaseRef>(pub T);
8787

8888
impl<F: DatabaseRef> From<F> for WrapDatabaseRef<F> {

crates/inspector/src/eip3155.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,8 @@ where
266266
mem_size: self.mem_size as u64,
267267

268268
op_name: OpCode::new(self.opcode).map(|i| i.as_str()),
269-
error: if !interp.control.instruction_result().is_ok() {
270-
Some(format!("{:?}", interp.control.instruction_result()))
271-
} else {
272-
None
273-
},
269+
error: (!interp.control.instruction_result().is_ok())
270+
.then(|| format!("{:?}", interp.control.instruction_result())),
274271
memory: self.memory.take(),
275272
storage: None,
276273
return_stack: None,

0 commit comments

Comments
 (0)