We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T=()
rune::Result
Allows to do:
type Result<T = (), E = anyhow::Error> = core::result::Result<T, E>; fn some_test -> Result { Ok(()) }
Though I also get not doing this, you really don't save much, but not having to say Result<()>.
Result<()>
The text was updated successfully, but these errors were encountered:
Might be a bit too unusual for my taste.
Strongest precedent I can think of is std::fmt::Result, but then it's set to exactly value. Even there it's a bit odd. 🤔
std::fmt::Result
Sorry, something went wrong.
No branches or pull requests
Allows to do:
Though I also get not doing this, you really don't save much, but not having to say
Result<()>
.The text was updated successfully, but these errors were encountered: