make ChainError Send + Sync

This commit is contained in:
Harald Hoyer 2019-03-12 16:43:53 +01:00
parent 51af6da378
commit a558c35ba4
Signed by: harald
GPG key ID: 2C4BF680CB5296D0
20 changed files with 84 additions and 85 deletions

View file

@ -4,7 +4,7 @@ use std::fmt::Write;
use std::io;
#[test]
fn test_iter() -> Result<(), Box<Error>> {
fn test_iter() -> Result<(), Box<Error + Send + Sync>> {
let err = io::Error::from(io::ErrorKind::NotFound);
let err = cherr!(err, "1");
let err = cherr!(err, "2");
@ -31,7 +31,7 @@ fn test_iter() -> Result<(), Box<Error>> {
}
#[test]
fn test_find_cause() -> Result<(), Box<Error>> {
fn test_find_cause() -> Result<(), Box<Error + Send + Sync>> {
let err = io::Error::from(io::ErrorKind::NotFound);
let err = cherr!(err, "1");
let err = cherr!(err, "2");
@ -48,7 +48,7 @@ fn test_find_cause() -> Result<(), Box<Error>> {
}
#[test]
fn test_root_cause() -> Result<(), Box<Error>> {
fn test_root_cause() -> Result<(), Box<Error + Send + Sync>> {
let err = io::Error::from(io::ErrorKind::NotFound);
let err = cherr!(err, "1");
let err = cherr!(err, "2");