You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code you linked, are you thinking of strengthening the constraints, i.e., re-writing the constraints that are currently written with Into to instead use From?
- <C::ClientState as TryFrom<Any>>::Error: Into<ClientError>,+ <C::ClientState as TryFrom<Any>>::Error: From<ClientError>,- <C::ConsensusState as TryFrom<Any>>::Error: From<ClientError>,+ <C::ConsensusState as TryFrom<Any>>::Error: From<ClientError>,
If that's not what you mean, I'm not actually sure how to re-write these lines to use From, as we can't replace them with
Feature Summary
Currently, we have some
Into
/TryInto
trait bounds which can be rewritten inFrom
/TryFrom
.ibc-rs/ibc-clients/cw-context/src/context/client_ctx.rs
Lines 21 to 22 in 1ca0371
From
is preferred overInto
, asA: From<B>
impliesB: Into<A>
, but not the other way around.Proposal
Note that,
Into
in super traits may requireSized
.The text was updated successfully, but these errors were encountered: