We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Error::Downstream
Send + Sync
1 parent 309fc7c commit 8b75878Copy full SHA for 8b75878
spdlog/src/error.rs
@@ -113,7 +113,7 @@ pub enum Error {
113
/// variants should be used first, this variant should only be used as a
114
/// last option when other variant types are incompatible.
115
#[error("{0}")]
116
- Downstream(Box<dyn StdError>),
+ Downstream(Box<dyn StdError + Send + Sync>),
117
118
/// Returned when multiple errors occurred.
119
#[error("{0:?}")]
@@ -363,6 +363,12 @@ impl fmt::Debug for ErrorHandler {
363
#[cfg(test)]
364
mod tests {
365
use super::*;
366
+ use crate::test_utils::*;
367
+
368
+ #[test]
369
+ fn error_traits() {
370
+ assert_trait!(Error: Send + Sync);
371
+ }
372
373
#[test]
374
fn push_err() {
0 commit comments