Re: [PATCH v5 03/15] rust: sync: change error type of constructor functions

From: Alice Ryhl
Date: Mon Apr 03 2023 - 13:57:12 EST


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@xxxxxxxxxxxxxx>
Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>
Cc: Gary Guo <gary@xxxxxxxxxxx>
Cc: Alice Ryhl <aliceryhl@xxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>