Skip to content

Commit

Permalink
fix compile and warning errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 11, 2024
1 parent 6da2278 commit f01ca63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/neutron-sdk/src/bindings/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pub enum ChannelOrdering {
OrderOrdered,
}

impl Into<i32> for ChannelOrdering {
fn into(self) -> i32 {
match self {
impl From<ChannelOrdering> for i32 {
fn from(ordering: ChannelOrdering) -> Self {
match ordering {
ChannelOrdering::OrderUnordered => 1,
ChannelOrdering::OrderOrdered => 2,
}
Expand Down

0 comments on commit f01ca63

Please sign in to comment.