Replies: 1 comment 4 replies
-
|
I wouldn't say it's easy, but I'd expect that something like use snafu::{Whatever, FromString};
let w = Whatever::without_source("oops".to_owned());What's your usecase for creating the error without returning? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's the easiest way to create a
Whatever? Basicallywhatever!-like macro but without built inreturn?Beta Was this translation helpful? Give feedback.
All reactions