diff --git a/Cargo.lock b/Cargo.lock index ef9306c..be10abc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,12 +125,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "doc-comment" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" - [[package]] name = "encoding_rs" version = "0.8.31" @@ -303,12 +297,6 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -[[package]] -name = "heck" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" - [[package]] name = "hermit-abi" version = "0.1.19" @@ -395,7 +383,6 @@ version = "0.1.0" dependencies = [ "futures", "reqwest", - "snafu", "tokio", ] @@ -812,28 +799,6 @@ version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" -[[package]] -name = "snafu" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152ba99b054b22972ee794cf04e5ef572da1229e33b65f3c57abbff0525a454" -dependencies = [ - "doc-comment", - "snafu-derive", -] - -[[package]] -name = "snafu-derive" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5e79cdebbabaebb06a9bdbaedc7f159b410461f63611d4d0e3fb0fab8fed850" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "socket2" version = "0.4.7" diff --git a/Cargo.toml b/Cargo.toml index 8fe62a3..6deecf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,3 @@ edition = "2021" reqwest = { version = "0.11", features = ["json", "brotli", "gzip", "native-tls", "deflate"] } tokio = { version = "1", features = ["full"] } futures = "0.3.25" -snafu = { version = "0.7.3", features = ["rust_1_61", "backtraces-impl-std"] } diff --git a/src/main.rs b/src/main.rs index bcc7948..81fd73a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,4 @@ use futures::{stream, StreamExt}; -use snafu::prelude::*; use std::time::{Duration, Instant}; const REQUEST_COUNT: usize = 10; @@ -38,7 +37,7 @@ async fn main() -> Result<()> { Ok(()) } -#[derive(Debug, Snafu)] +#[derive(Debug)] struct Error; type Result = ::core::result::Result; \ No newline at end of file