Skip to content

Commit

Permalink
fix: clippy gen swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
batleforc committed Aug 11, 2024
1 parent 5b14f1b commit 291b52f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/back/src/bin/gen_swagger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ extern crate back;

pub fn main() {
let args: Vec<String> = env::args().collect();
match args.len() {
1 => {
println!("Usage: gen_swagger <output_file>");
std::process::exit(1);
}
_ => {}
if args.len() < 2 {
println!("Usage: gen_swagger <output_file>");
std::process::exit(1);
}
let mut openapi = ApiDocs::openapi();
openapi.info.version = env!("CARGO_PKG_VERSION").to_string();
Expand Down

0 comments on commit 291b52f

Please sign in to comment.