Upgrade failure and fix deprecation warnings (#605)

This commit is contained in:
Alex Crichton 2018-08-01 16:15:09 -05:00 committed by GitHub
parent eee71de0ce
commit 6def60681b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@ Shared support for the wasm-bindgen-cli package, an internal dependency
[dependencies]
base64 = "0.9"
failure = "0.1"
failure = "0.1.2"
parity-wasm = "0.31"
serde = "1.0"
serde_derive = "1.0"

View File

@ -16,7 +16,7 @@ information see https://github.com/alexcrichton/wasm-bindgen.
curl = "0.4.13"
docopt = "1.0"
env_logger = "0.5"
failure = "0.1"
failure = "0.1.2"
log = "0.4"
parity-wasm = "0.31"
rouille = { version = "2.1.0", default-features = false }

View File

@ -48,7 +48,7 @@ fn main() {
Err(e) => e,
};
eprintln!("error: {}", err);
for cause in err.causes().skip(1) {
for cause in err.iter_causes() {
eprintln!("\tcaused by: {}", cause);
}
process::exit(1);

View File

@ -66,7 +66,7 @@ fn main() {
Err(e) => e,
};
eprintln!("error: {}", err);
for cause in err.causes().skip(1) {
for cause in err.iter_causes() {
eprintln!("\tcaused by: {}", cause);
}
process::exit(1);

View File

@ -50,7 +50,7 @@ fn main() {
Err(e) => e,
};
eprintln!("error: {}", err);
for cause in err.causes().skip(1) {
for cause in err.iter_causes() {
eprintln!("\tcaused by: {}", cause);
}
process::exit(1);

View File

@ -596,7 +596,7 @@ impl Project {
.generate(&root);
if let Err(e) = res {
for e in e.causes() {
for e in e.iter_chain() {
println!("- {}", e);
}
panic!("failed");

View File

@ -10,7 +10,7 @@ test = false
[build-dependencies]
env_logger = "0.5.10"
failure = "0.1"
failure = "0.1.2"
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.15" }
sourcefile = "0.1"

View File

@ -15,7 +15,7 @@ use std::process;
fn main() {
if let Err(e) = try_main() {
eprintln!("Error: {}", e);
for c in e.causes().skip(1) {
for c in e.iter_causes() {
eprintln!(" caused by {}", c);
}
process::exit(1);

View File

@ -12,8 +12,8 @@ Support for parsing WebIDL specific to wasm-bindgen
"""
[dependencies]
failure = "0.1"
failure_derive = "0.1"
failure = "0.1.2"
failure_derive = "0.1.2"
heck = "0.3"
log = "0.4.1"
proc-macro2 = "0.4.8"