Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
derive_more::Into
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 23, 2024
1 parent 6ca7746 commit 14026f6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions clients/sov-celestia/src/consensus_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ use tendermint::{Hash, Time};
/// Rust's orphan rules and implement traits from `ibc::core::client::context`
/// on the `ConsensusState` type.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Clone, Debug, PartialEq, derive_more::From)]
#[derive(Clone, Debug, PartialEq, derive_more::From, derive_more::Into)]
pub struct ConsensusState(SovTmConsensusState);

impl From<ConsensusState> for SovTmConsensusState {
fn from(value: ConsensusState) -> Self {
value.0
}
}

impl ConsensusState {
pub fn inner(&self) -> &SovTmConsensusState {
&self.0
Expand Down

0 comments on commit 14026f6

Please sign in to comment.