mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-08 14:56:12 +02:00
fix a deprecation warning from clap
This commit is contained in:
parent
d77a70f512
commit
4393a9b79c
|
@ -1,5 +1,5 @@
|
|||
use anyhow::{bail, ensure, Context, Result};
|
||||
use clap::{App, Arg};
|
||||
use clap::{Arg, Command};
|
||||
use std::cmp;
|
||||
use std::convert::TryInto;
|
||||
use std::fs::File;
|
||||
|
@ -31,7 +31,7 @@ struct Args {
|
|||
|
||||
impl Args {
|
||||
fn parse() -> Result<Self> {
|
||||
let inner = App::new(NAME)
|
||||
let inner = Command::new(NAME)
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
.arg(
|
||||
Arg::new(FILE_ARG)
|
||||
|
|
Loading…
Reference in New Issue