mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-27 19:28:56 +03:00
Upgrade failure
and fix deprecation warnings (#605)
This commit is contained in:
parent
eee71de0ce
commit
6def60681b
@ -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"
|
||||
|
@ -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 }
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user