Skip to content

Commit

Permalink
clippy: use matches! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ls committed Oct 25, 2024
1 parent 3666ec4 commit 7702df6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ fn main() -> Result<()> {
// supported. These extensions are now incorporated as part of the `cargo-stylus` command itself and
// will be the preferred method of running them.
fn is_deprecated_extension(subcommand: &str) -> bool {
match subcommand {
"cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay" => true,
_ => false,
}
matches!(
subcommand,
"cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay"
)
}

async fn main_impl(args: Opts) -> Result<()> {
Expand Down

0 comments on commit 7702df6

Please sign in to comment.