rust: alloc: update `VecExt` to take allocation flags
We also rename the methods by removing the `try_` prefix since the names are available due to our usage of the `no_global_oom_handling` config when building the `alloc` crate. Reviewed-by:Boqun Feng <boqun.feng@gmail.com> Signed-off-by:
Wedson Almeida Filho <walmeida@microsoft.com> Reviewed-by:
Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20240328013603.206764-8-wedsonaf@gmail.com Signed-off-by:
Miguel Ojeda <ojeda@kernel.org>
Showing
- rust/kernel/alloc/vec_ext.rs 143 additions, 15 deletionsrust/kernel/alloc/vec_ext.rs
- rust/kernel/error.rs 1 addition, 10 deletionsrust/kernel/error.rs
- rust/kernel/lib.rs 0 additions, 1 deletionrust/kernel/lib.rs
- rust/kernel/str.rs 3 additions, 3 deletionsrust/kernel/str.rs
- rust/kernel/types.rs 2 additions, 2 deletionsrust/kernel/types.rs
- samples/rust/rust_minimal.rs 3 additions, 3 deletionssamples/rust/rust_minimal.rs
Loading
Please register or sign in to comment