Re: [PATCH v3 1/3] rust: error: Change `LayoutError` to internal

From: Jimmy Ostler
Date: Fri Dec 20 2024 - 01:16:30 EST


On Wed, Dec 18, 2024 at 4:43 AM Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
>
> On Wed, Dec 18, 2024 at 01:57:29AM +0100, Miguel Ojeda wrote:
> > On Wed, Dec 18, 2024 at 1:24 AM Jimmy Ostler <jtostler1@xxxxxxxxx> wrote:
> > >
> > > Add an implementation of `From<LayoutError> for Error` for the
> > > `kernel::alloc::layout::LayoutError`.
> > > Remove the implementation on `core::alloc::LayoutError`, because we
> > > don't use it anywhere.
> >
> > No need to send a new version for this, but it may make sense to
> > reword to clarify that this switches the import, and therefore the
> > `impl` switches from one to the other. The way it is written, it
> > sounds like an actual `impl` item was textually added and another one
> > removed.
>
> Agree with Miguel, the commit message is slightly misleading.

That's a good point, I can reword that.

> With that fixed,

I'll submit a v4 with that fixed, thanks.

> Acked-by: Danilo Krummrich <dakr@xxxxxxxxxx>
>
> >
> > Cheers,
> > Miguel

Thanks,
Jimmy Ostler