Skip to content

Commit 1340fd5

Browse files
committed
Update docopt usage since we bumped major versions
1 parent b61f234 commit 1340fd5

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

Diff for: Cargo.lock

+1-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ path = "tools/src/bin/remove_markup.rs"
4040
[dependencies]
4141
walkdir = "2.3.1"
4242
docopt = "1.1.0"
43-
rustc-serialize = "0.3.24"
43+
serde = "1.0"
4444
regex = "1.3.3"
4545
lazy_static = "1.4.0"
4646
flate2 = "1.0.13"

Diff for: tools/src/bin/lfp.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
// We have some long regex literals, so:
22
// ignore-tidy-linelength
33

4-
extern crate docopt;
5-
extern crate rustc_serialize;
6-
extern crate walkdir;
7-
84
use docopt::Docopt;
5+
use serde::Deserialize;
96
use std::io::BufRead;
107
use std::{fs, io, path};
118

129
fn main() {
1310
let args: Args = Docopt::new(USAGE)
14-
.and_then(|d| d.decode())
11+
.and_then(|d| d.deserialize())
1512
.unwrap_or_else(|e| e.exit());
1613

1714
let src_dir = &path::Path::new(&args.arg_src_dir);
@@ -69,7 +66,7 @@ Options:
6966
-h --help Show this screen.
7067
";
7168

72-
#[derive(Debug, RustcDecodable)]
69+
#[derive(Debug, Deserialize)]
7370
struct Args {
7471
arg_src_dir: String,
7572
}

0 commit comments

Comments
 (0)