diff options
| author | Benno Lossin <[email protected]> | 2025-05-19 12:43:02 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-07-21 21:54:19 +0000 |
| commit | 28753212e0f9c61afd859acf1d678f5de7faa4b8 (patch) | |
| tree | 359dbed430cdeaf660dd27de3b40a9eb8707d509 /rust/helpers/bug.c | |
| parent | rust: kernel: use `core::ffi::CStr` method names (diff) | |
| download | kernel-28753212e0f9c61afd859acf1d678f5de7faa4b8.tar.gz kernel-28753212e0f9c61afd859acf1d678f5de7faa4b8.zip | |
rust: types: remove `Either<L, R>`
This enum is not used. Additionally, using it would result in poor
ergonomics, because in order to do any operation on a value it has to be
matched first. Our version of `Either` also doesn't provide any helper
methods making it even more difficult to use.
The alternative of creating a custom enum for the concrete use-case also
is much better for ergonomics. As one can provide functions on the type
directly and users don't need to match the value manually.
Signed-off-by: Benno Lossin <[email protected]>
Reviewed-by: Danilo Krummrich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions
