Re: [PATCH v1 6/7] rust: workqueue: add safe API to workqueue

From: Martin Rodriguez Reboredo
Date: Tue May 30 2023 - 09:23:32 EST


On 5/30/23 04:19, Andreas Hindborg wrote:> I prefer the first one, but both look OK to me. Is one more idiomatic
than the other, or is it just a matter of personal preference?

Pedantic Clippy will deny a boolean match and I prefer if-else over it
because the latter it's explicitly purposed for boolean control flow.