diff --git a/Cargo.lock b/Cargo.lock index 56b06ec..8db0b5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -427,18 +427,18 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "snafu" -version = "0.8.9" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2" +checksum = "d1d4bced6a69f90b2056c03dcff2c4737f98d6fb9e0853493996e1d253ca29c6" dependencies = [ "snafu-derive", ] [[package]] name = "snafu-derive" -version = "0.8.9" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451" +checksum = "54254b8531cafa275c5e096f62d48c81435d1015405a91198ddb11e967301d40" dependencies = [ "heck", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 9f67232..db6d201 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ categories = ["encoding"] [dependencies] log = "0.4" -snafu = "0.8" +snafu = "0.9" [dev-dependencies] chrono = "0.4" diff --git a/src/error.rs b/src/error.rs index 3d0a2db..be8fbe4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -6,6 +6,7 @@ use std::path::PathBuf; /// The public Error type for this library. #[derive(Debug, Snafu)] +#[snafu(source(from(exact)))] pub struct Error(LibError); /// The public Result type for this library.