diff options
| author | Benno Lossin <[email protected]> | 2023-04-08 12:25:29 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2023-04-12 16:41:05 +0000 |
| commit | d6dbca3592209d29c10e171224c34803805e88ca (patch) | |
| tree | 12bd06587d811debc295c81cdf1c0befa76d4f93 /rust/macros/lib.rs | |
| parent | rust: macros: add `quote!` macro (diff) | |
| download | kernel-d6dbca3592209d29c10e171224c34803805e88ca.tar.gz kernel-d6dbca3592209d29c10e171224c34803805e88ca.zip | |
rust: sync: change error type of constructor functions
Change the error type of the constructors of `Arc` and `UniqueArc` to be
`AllocError` instead of `Error`. This makes the API more clear as to
what can go wrong when calling `try_new` or its variants.
Signed-off-by: Benno Lossin <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/lib.rs')
0 files changed, 0 insertions, 0 deletions
