refactor: replace into bound with standalone function (#14512)

This commit is contained in:
caglarkaya
2025-02-15 18:05:17 +03:00
committed by GitHub
parent 0f4914a944
commit cb615cf5e1
8 changed files with 53 additions and 6 deletions

View File

@ -200,6 +200,10 @@ impl reth_primitives_traits::serde_bincode_compat::SerdeBincodeCompat for Receip
fn as_repr(&self) -> Self::BincodeRepr<'_> {
self.clone()
}
fn from_repr(repr: Self::BincodeRepr<'_>) -> Self {
repr
}
}
#[cfg(test)]

View File

@ -974,6 +974,10 @@ pub mod serde_bincode_compat {
fn as_repr(&self) -> Self::BincodeRepr<'_> {
self.into()
}
fn from_repr(repr: Self::BincodeRepr<'_>) -> Self {
repr.into()
}
}
#[cfg(test)]