Upgrade snafu to 0.7 (#1067)

This commit is contained in:
Jake Goulding 2022-01-04 11:55:11 -05:00 committed by GitHub
parent ef3629fae3
commit c89dad9498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

9
Cargo.lock generated
View File

@ -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",

View File

@ -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"

View File

@ -416,7 +416,7 @@ impl Config {
}
pub(crate) fn from_matches(matches: &ArgMatches) -> ConfigResult<Self> {
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