failure icon indicating copy to clipboard operation
failure copied to clipboard

Replace std::error::Error with core_error::Error

Open roblabla opened this issue 6 years ago • 0 comments

Fixes #328

Use core_error::Error, a compatibility Error trait in no_std environment allowing interoperability between various error handling crates, such as snafu. In std environment, core_error simply reexports std::error, so this change should be invisible to std users.

In particular this change does two things:

  • It implements Fail on every core_error::Error error.
  • It implements core_error::Error on Compat.

It also replaces other usage of std::error::Error to core_error::Error, but those should have no visible effect.

This is a preliminary PR to get some feedback. In particular, I'm not sure where to document the changes. no_std documentation is pretty scarce in failure.

roblabla avatar Nov 02 '19 14:11 roblabla