galvanic-assert icon indicating copy to clipboard operation
galvanic-assert copied to clipboard

Add debug to the result of a failed `is_variant`.

Open skeet70 opened this issue 4 years ago • 0 comments

No idea if you actually want to make Debug a requirement here.

I use Debug on all my types, std::assert_eq requires Debug, and think it makes the error messages when variant fails much more useful. I wrote this for my own use and figured I should PR it in case you'd like to add it.

skeet70 avatar Mar 25 '20 23:03 skeet70