From c89dad9498c1503e857cbc02078c20eab5927e77 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Tue, 4 Jan 2022 11:55:11 -0500 Subject: [PATCH] Upgrade snafu to 0.7 (#1067) --- Cargo.lock | 9 +++++---- Cargo.toml | 2 +- src/config.rs | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ebcb59..ced7ebb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -528,9 +528,9 @@ dependencies = [ [[package]] name = "snafu" -version = "0.6.10" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eab12d3c261b2308b0d80c26fffb58d17eba81a4be97890101f416b478c79ca7" +checksum = "2eba135d2c579aa65364522eb78590cdf703176ef71ad4c32b00f58f7afb2df5" dependencies = [ "doc-comment", "snafu-derive", @@ -538,10 +538,11 @@ dependencies = [ [[package]] name = "snafu-derive" -version = "0.6.10" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1508efa03c362e23817f96cde18abed596a25219a8b2c66e8db33c03543d315b" +checksum = "7a7fe9b0669ef117c5cabc5549638528f36771f058ff977d7689deb517833a75" dependencies = [ + "heck", "proc-macro2", "quote", "syn", diff --git a/Cargo.toml b/Cargo.toml index df3d714..c5210ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ regex = "1.5.4" serde = { version = "1.0.130", features = ["derive", "rc"] } serde_json = "1.0.68" similar = { version = "2.1.0", features = ["unicode"] } -snafu = "0.6.0" +snafu = "0.7.0" strum = { version = "0.23.0", features = ["derive"] } target = "2.0.0" tempfile = "3.0.0" diff --git a/src/config.rs b/src/config.rs index b3d1c5b..c20bdd1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -416,7 +416,7 @@ impl Config { } pub(crate) fn from_matches(matches: &ArgMatches) -> ConfigResult { - let invocation_directory = env::current_dir().context(config_error::CurrentDir)?; + let invocation_directory = env::current_dir().context(config_error::CurrentDirSnafu)?; let verbosity = if matches.is_present(arg::QUIET) { Verbosity::Quiet