mirror of
https://github.com/haraldh/chainerror.git
synced 2025-05-29 13:08:08 +02:00
add dyn
This commit is contained in:
parent
3e270f1e1a
commit
1d43a39c61
18 changed files with 83 additions and 84 deletions
|
@ -4,7 +4,7 @@ use std::fmt::Write;
|
|||
use std::io;
|
||||
|
||||
#[test]
|
||||
fn test_iter() -> Result<(), Box<Error + Send + Sync>> {
|
||||
fn test_iter() -> Result<(), Box<dyn 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 + Send + Sync>> {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_find_cause() -> Result<(), Box<Error + Send + Sync>> {
|
||||
fn test_find_cause() -> Result<(), Box<dyn 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 + Send + Sync>> {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_root_cause() -> Result<(), Box<Error + Send + Sync>> {
|
||||
fn test_root_cause() -> Result<(), Box<dyn Error + Send + Sync>> {
|
||||
let err = io::Error::from(io::ErrorKind::NotFound);
|
||||
let err = cherr!(err, "1");
|
||||
let err = cherr!(err, "2");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue