Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit d83e5fe

Browse files
author
Achim Schneider
committed
fix CLI crate-extractor
1 parent 32ba8c3 commit d83e5fe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/crate_extractor/src/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ pub struct Cli {
3030

3131
#[derive(Subcommand, Debug, Clone)]
3232
pub enum Commands {
33-
Command(CmdCreate),
33+
#[allow(non_camel_case_types)]
34+
create(CmdCreate),
3435
}
3536

3637
#[derive(Parser, Debug, Clone)]

crates/crate_extractor/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::{
2424
cli::{
2525
Cli,
2626
CmdCreate,
27-
Commands,
27+
Commands::create,
2828
},
2929
load_change::LoadCargoConfig,
3030
};
@@ -55,7 +55,7 @@ fn main() {
5555
let opts: Cli = Cli::parse();
5656

5757
match opts.command {
58-
Commands::Command(CmdCreate {
58+
create(CmdCreate {
5959
manifest_path,
6060
output,
6161
}) => {

0 commit comments

Comments
 (0)