Skip to content
Snippets Groups Projects
Commit c7e20faa authored by Asahi Lina's avatar Asahi Lina :sparkles: Committed by Miguel Ojeda
Browse files

rust: error: Add Error::to_ptr()


This is the Rust equivalent to ERR_PTR(), for use in C callbacks.
Marked as #[allow(dead_code)] for now, since it does not have any
consumers yet.

Reviewed-by: Martin Rodriguez Reboredo's avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
Signed-off-by: default avatarAsahi Lina <lina@asahilina.net>
Reviewed-by: default avatarGary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20230224-rust-error-v3-2-03779bddc02b@asahilina.net


Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 46384d09
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment