Skip to content

Commit

Permalink
boxing large elements in enum variants
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 24, 2024
1 parent 8c7cc3f commit de082f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ibc-clients/ics07-tendermint/types/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub enum Error {
/// not enough trust because insufficient validators overlap: `{reason}`
NotEnoughTrustedValsSigned { reason: VotingPowerTally },
/// verification failed: `{detail}`
VerificationError { detail: LightClientErrorDetail },
VerificationError { detail: Box<LightClientErrorDetail> },
/// Processed time or height for the client `{client_id}` at height `{height}` not found
UpdateMetaDataNotFound { client_id: ClientId, height: Height },
/// The given hash of the validators does not matches the given hash in the signed header. Expected: `{signed_header_validators_hash}`, got: `{validators_hash}`
Expand Down Expand Up @@ -137,7 +137,9 @@ impl IntoResult<(), Error> for Verdict {
match self {
Verdict::Success => Ok(()),
Verdict::NotEnoughTrust(reason) => Err(Error::NotEnoughTrustedValsSigned { reason }),
Verdict::Invalid(detail) => Err(Error::VerificationError { detail }),
Verdict::Invalid(detail) => Err(Error::VerificationError {
detail: Box::new(detail),
}),
}
}
}

0 comments on commit de082f5

Please sign in to comment.