mirror of
https://github.com/OMGeeky/twba_reqwest_backoff.git
synced 2026-01-23 10:28:55 +01:00
make error Send + Sync
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reqwest-backoff"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -20,7 +20,7 @@ pub enum ReqwestBackoffError {
|
||||
#[error("Reqwest error")]
|
||||
Reqwest(#[from] Error),
|
||||
#[error("Other error")]
|
||||
Other(#[from] Box<dyn StdError>),
|
||||
Other(#[from] Box<dyn StdError + Send + Sync>),
|
||||
#[error("Backoff error after {backoff_attempts} attempts")]
|
||||
BackoffExceeded { backoff_attempts: u32 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user