Skip to content

Commit bb1a53f

Browse files
Luni-4marco-c
authored andcommitted
cli: Fix warning caused by a deprecated function
With update of Cargo.lock, a cli function has become deprecated
1 parent a001428 commit bb1a53f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-code-analysis-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod formats;
22

3-
use clap::{crate_version, App, Arg};
3+
use clap::{crate_version, Arg, Command};
44
use globset::{Glob, GlobSet, GlobSetBuilder};
55
use std::collections::{hash_map, HashMap};
66
use std::fmt;
@@ -181,7 +181,7 @@ where
181181
}
182182

183183
fn main() {
184-
let matches = App::new("rust-code-analysis-cli")
184+
let matches = Command::new("rust-code-analysis-cli")
185185
.version(crate_version!())
186186
.author(&*env!("CARGO_PKG_AUTHORS").replace(':', "\n"))
187187
.about("Analyze source code")

0 commit comments

Comments
 (0)