From f01ca63bb200a51a147bd155278daaa71867d542 Mon Sep 17 00:00:00 2001 From: nhpd Date: Fri, 11 Oct 2024 18:42:31 +0400 Subject: [PATCH] fix compile and warning errors --- packages/neutron-sdk/src/bindings/msg.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/neutron-sdk/src/bindings/msg.rs b/packages/neutron-sdk/src/bindings/msg.rs index 23ed7465..ba12f506 100644 --- a/packages/neutron-sdk/src/bindings/msg.rs +++ b/packages/neutron-sdk/src/bindings/msg.rs @@ -25,9 +25,9 @@ pub enum ChannelOrdering { OrderOrdered, } -impl Into for ChannelOrdering { - fn into(self) -> i32 { - match self { +impl From for i32 { + fn from(ordering: ChannelOrdering) -> Self { + match ordering { ChannelOrdering::OrderUnordered => 1, ChannelOrdering::OrderOrdered => 2, }