[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72=2ZLrQqzVznA5O=2SDdHHETWUtc0MiLHP_Bx7n=vzLqw@mail.gmail.com>
Date: Mon, 12 May 2025 15:48:54 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Miguel Ojeda <ojeda@...nel.org>
Cc: 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>,
Danilo Krummrich <dakr@...nel.org>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, patches@...ts.linux.dev
Subject: Re: [PATCH] rust: uaccess: take advantage of the prelude and
`Result`'s defaults
On Tue, Apr 29, 2025 at 5:15 PM Miguel Ojeda <ojeda@...nel.org> wrote:
>
> The `kernel` prelude brings `Result` and the error codes; and the prelude
> itself is already available in the examples automatically.
>
> In addition, `Result` already defaults to `T = ()`.
>
> Thus simplify.
>
> Signed-off-by: Miguel Ojeda <ojeda@...nel.org>
Applied to `rust-next` -- thanks!
Cheers,
Miguel
Powered by blists - more mailing lists