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

Implement std::error::Error for winrt::Error

Open frewsxcv opened this issue 5 years ago • 2 comments

Thoughts on implementing the primary Rust error trait for winrt's error type?

frewsxcv avatar Apr 10 '19 11:04 frewsxcv

I think I haven't done that so far because std::error::Error has some deficiencies (which is why https://github.com/rust-lang-nursery/failure is a thing). I'm not sure if we are able to support both. Maybe with a feature flag?

Boddlnagg avatar Apr 10 '19 16:04 Boddlnagg

I think I haven't done that so far because std::error::Error has some deficiencies (which is why https://github.com/rust-lang-nursery/failure is a thing)

It has some deficiencies, yeah, but this RFC was approved which plans to improve it. This is your crate though, so up to you!

frewsxcv avatar Apr 11 '19 01:04 frewsxcv