From d43890234575011a34f7295d3ff4493f56daa23e Mon Sep 17 00:00:00 2001 From: Njuguna Mureithi Date: Mon, 10 Jun 2024 16:55:14 +0300 Subject: [PATCH] lint: clippy and fmt --- src/models.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models.rs b/src/models.rs index 7f1e2a8..09b2d26 100644 --- a/src/models.rs +++ b/src/models.rs @@ -121,9 +121,9 @@ impl FromStr for Layout { } } -impl Into for Layout { - fn into(self) -> LayoutName { - match self { +impl From for LayoutName { + fn from(val: Layout) -> Self { + match val { Layout::AllCairo => LayoutName::all_cairo, Layout::AllSolidity => LayoutName::all_solidity, Layout::Dex => LayoutName::dex, @@ -132,7 +132,7 @@ impl Into for Layout { Layout::RecursiveLargeOutput => LayoutName::recursive_large_output, Layout::Small => LayoutName::small, Layout::Starknet => LayoutName::starknet, - Layout::StarknetWithKeccak => LayoutName::starknet_with_keccak + Layout::StarknetWithKeccak => LayoutName::starknet_with_keccak, } } }