Skip to content
Commit 4b0c68bd authored by Finn Behrens's avatar Finn Behrens Committed by Miguel Ojeda
Browse files

rust: error: declare errors using macro



Add a macro to declare errors, which simplifies the work needed to
add each one, avoids repetition of the code and makes it easier to
change the way they are declared.

Signed-off-by: default avatarFinn Behrens <me@kloenk.dev>
Reviewed-by: default avatarGary Guo <gary@garyguo.net>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent b13c9880
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment