Messages in this thread | | | Date | Mon, 3 Apr 2023 19:56:15 +0200 | From | Alice Ryhl <> | Subject | Re: [PATCH v5 03/15] rust: sync: change error type of constructor functions |
| |
On 4/3/23 17:44, Benno Lossin wrote: > 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 <y86-dev@protonmail.com> > Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com> > Cc: Gary Guo <gary@garyguo.net> > Cc: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
| |