Skip to content

Commit 2da7ca8

Browse files
committed
Update crates.
1 parent d49914d commit 2da7ca8

File tree

3 files changed

+109
-75
lines changed

3 files changed

+109
-75
lines changed

Cargo.lock

Lines changed: 103 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["Mike Sampson <[email protected]>"]
55
license = "MIT"
66

77
[dependencies]
8-
nix = "0.18"
8+
nix = "0.24.1"
99
colored = "2"
10-
clap = "2.33.1"
10+
clap = "3.1.18"

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern crate nix;
55
mod stats;
66
mod util;
77

8-
use clap::{App, Arg};
8+
use clap::{Command, Arg};
99
use colored::*;
1010
use nix::sys::statvfs::statvfs;
1111
use std::cmp;
@@ -21,13 +21,13 @@ const FS_SPEC: usize = 0;
2121
const FS_FILE: usize = 1;
2222

2323
fn main() {
24-
let matches = App::new("rdf")
24+
let matches = Command::new("rdf")
2525
.version("0.1.0")
2626
.author("Mike Sampson <[email protected]>")
2727
.arg(
28-
Arg::with_name("all")
28+
Arg::new("all")
2929
.long("all")
30-
.short("a")
30+
.short('a')
3131
.help("Display all filesystems"),
3232
)
3333
.get_matches();

0 commit comments

Comments
 (0)