< 返回我的博客

rdigua 发表于 2023-02-15 11:55

Tags:Test, One day once content, Learning

no implementation for `dyn std::error::Error == dyn std::error::Error`

modify:

assert_eq!(actual.ok(), Some(expected));

assert_eq!(actual.map_err(|e| format!("{:?}", e)), Ok(expected));

See it

评论区

写评论

还没有评论

1 共 0 条评论, 1 页