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
We have lots of code like this:
if ids.len() != 1 { return Err(actor_error!( illegal_argument, "expected 1 allocation ID, got {:?}", ids )); }
Write a couple of macros so we can write
require_argument!(ids.len() == 1, "expected 1 allocation ID, got {:?}", ids)
and similar for state and "forbidden"-type errors. (Macros are necessary for var-args)
The text was updated successfully, but these errors were encountered:
Note: for fixed-length parameter arrays, we should probably just be using arrays. But otherwise, yeah, require_argument would be nice.
require_argument
Sorry, something went wrong.
No branches or pull requests
We have lots of code like this:
Write a couple of macros so we can write
and similar for state and "forbidden"-type errors. (Macros are necessary for var-args)
The text was updated successfully, but these errors were encountered: