Skip to content

Commit

Permalink
fix a deprecation warning from clap
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Mar 27, 2022
1 parent d77a70f commit 4393a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions b3sum/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4393a9b

Please sign in to comment.