1
0
Fork 0
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:
Jack O'Connor 2022-03-27 16:47:34 -04:00
parent d77a70f512
commit 4393a9b79c

View File

@ -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)