Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binance::errors::Error cannot be shared between threads safely #207

Open
dovahcrow opened this issue Mar 23, 2023 · 0 comments
Open

binance::errors::Error cannot be shared between threads safely #207

dovahcrow opened this issue Mar 23, 2023 · 0 comments

Comments

@dovahcrow
Copy link

When converting the Error in this library into anyhow::Error, got the error in the title:

(dyn StdError + std::marker::Send + 'static)` cannot be shared between threads safely
   = help: the trait `Sync` is not implemented for `(dyn StdError + std::marker::Send + 'static)`
   = note: required because of the requirements on the impl of `Sync` for `std::ptr::Unique<(dyn StdError + std::marker::Send + 'static)>`
   = note: required because it appears within the type `Box<(dyn StdError + std::marker::Send + 'static)>`
   = note: required because it appears within the type `std::option::Option<Box<(dyn StdError + std::marker::Send + 'static)>>`
   = note: required because it appears within the type `error_chain::State`
   = note: required because it appears within the type `binance::errors::Error`
   = note: required because of the requirements on the impl of `From<binance::errors::Error>` for `anyhow::Error`
   = note: required because of the requirements on the impl of `FromResidual<Result<Infallible, binance::errors::Error>>` for `Result<(), anyhow::Error>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant