Skip to content
Commit c7e20faa authored by Asahi Lina's avatar Asahi Lina 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: default 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment