Adam Wright
Results
2
comments of
Adam Wright
Here's roughly what I'm doing: ```rust assert_matches!(function_to_test().err().unwrap().downcast().unwrap(), MyErrorType::MyVariant{ etc }); ``` Naively, I made this: ```rust macro_rules! assert_fail { ($actual:expr, $expected:pat) => (assert_matches!(($actual).err().unwrap().downcast().unwrap(), $expected)); } ``` I wonder if something...
Thanks for filing this! We haven't thought about auth much yet. For now you can, of course, add the auth information as an argument (though I realize it's less convenient)....