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
#[panicking]
The macro will require Result in return type, but it only will be for ability to use ?. On expand it will unwrap() the result and return only Ok(T)
?
The text was updated successfully, but these errors were encountered:
@breathx can you please elaborate on this? Any examples of usage?
Sorry, something went wrong.
@breathx better description is on you
fn mint(&nut self, value: u64) -> bool { ler r: Result<bool, String> = some_func(); r.unwrap(); // intentionally }
#[panicking] fn mint(&nut self, value: u64) -> Result<bool, String> { ler r: Result<bool, String> = some_func()?; }
Wouldn't it be better to use the existing route attribute with the unwrap_result prameter?
route
unwrap_result
#[route(unwrap_result)] fn mint(&nut self, value: u64) -> Result<bool, String> { ler r: Result<bool, String> = some_func()?; }
No branches or pull requests
The macro will require Result in return type, but it only will be for ability to use
?
. On expand it will unwrap() the result and return only Ok(T)The text was updated successfully, but these errors were encountered: