[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72mUoDFZuJZsfEbodXtXsVoHAXRDO27gBES3=uAOGZ6kfw@mail.gmail.com>
Date: Fri, 13 Dec 2024 22:31:22 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Tamir Duberstein <tamird@...il.com>
Cc: Danilo Krummrich <dakr@...nel.org>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Matthew Wilcox <willy@...radead.org>, Maíra Canal <mcanal@...lia.com>,
Asahi Lina <lina@...hilina.net>, rust-for-linux@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v13 0/2] rust: xarray: Add a minimal abstraction for XArray
On Fri, Dec 13, 2024 at 9:02 PM Tamir Duberstein <tamird@...il.com> wrote:
>
> Changes in v13:
> - Replace `bool::then` with `if`. (Miguel Ojeda)
> - Replace `match` with `let` + `if`. (Miguel Ojeda)
Personally, I would also use the early return style in both of these,
like in C. I think you may also omit the parenthesis in the first one.
(No need for a new version just for this)
Thanks!
Cheers,
Miguel
Powered by blists - more mailing lists