From d4c43d6b07bc81522183187bdeebe23f37d6f3ba Mon Sep 17 00:00:00 2001 From: Lovecraftian Horror Date: Tue, 25 Aug 2020 21:47:35 -0400 Subject: [PATCH] Update to version 2 of quick-error --- Cargo.toml | 2 +- src/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 06eccad..b57e414 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ travis-ci = { repository = "AltSysrq/rusty-fork" } [dependencies] fnv = "1.0" -quick-error = "1.2" +quick-error = "2.0" tempfile = "3.0" wait-timeout = { version = "0.2", optional = true } diff --git a/src/error.rs b/src/error.rs index 5539a42..dad0916 100644 --- a/src/error.rs +++ b/src/error.rs @@ -52,7 +52,7 @@ quick_error! { /// Spawning a subprocess failed. SpawnError(err: io::Error) { from() - cause(err) + source(err) display("Spawn failed: {}", err) } }