Skip to content

Commit

Permalink
lint: clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Jun 10, 2024
1 parent 57eadf7 commit d438902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ impl FromStr for Layout {
}
}

impl Into<LayoutName> for Layout {
fn into(self) -> LayoutName {
match self {
impl From<Layout> for LayoutName {
fn from(val: Layout) -> Self {
match val {
Layout::AllCairo => LayoutName::all_cairo,
Layout::AllSolidity => LayoutName::all_solidity,
Layout::Dex => LayoutName::dex,
Expand All @@ -132,7 +132,7 @@ impl Into<LayoutName> 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,
}
}
}
Expand Down

0 comments on commit d438902

Please sign in to comment.