rust-tuf icon indicating copy to clipboard operation
rust-tuf copied to clipboard

Use `failure` crate for errors instead of a enum

Open heartsucker opened this issue 7 years ago • 1 comments

heartsucker avatar Jul 17 '18 12:07 heartsucker

Are there any concerns with tuf::Error not being able to implement PartialEq/Eq? I'd like to extract some of the error cases currently stored in Error::Opaque into their own variants, but errors like failure::Error, anyhow::Error, hyper::Error and std::io::Error, for example, aren't PartialEq.

This can be a problem with assert_eq! in tests, but assert_matches! mostly solves that issue.

wellsie1116 avatar Feb 06 '20 21:02 wellsie1116