delete snafu

This commit is contained in:
nora 2022-11-20 20:19:59 +01:00
parent e8ea766ff0
commit 06f9546606
No known key found for this signature in database
3 changed files with 1 additions and 38 deletions

35
Cargo.lock generated
View file

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

View file

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

View file

@ -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<T, E = Error> = ::core::result::Result<T, E>;