Re: [PATCH net-next 1/2] net: phy: ax88796b: Use vertical import style
From: Alice Ryhl
Date: Mon Jul 06 2026 - 11:05:47 EST
On Mon, Jul 6, 2026 at 3:17 PM Andrew Lunn <andrew@xxxxxxx> wrote:
>
> On Sun, Jul 05, 2026 at 10:38:40PM -0700, Guru Das Srinagesh wrote:
> > Convert `use` imports to vertical layout for better readability and
> > maintainability.
> >
> > Signed-off-by: Guru Das Srinagesh <linux@xxxxxxxxxxx>
> > ---
> > drivers/net/phy/ax88796b_rust.rs | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/phy/ax88796b_rust.rs b/drivers/net/phy/ax88796b_rust.rs
> > index 2d24628a4e58..5a21fe09bd62 100644
> > --- a/drivers/net/phy/ax88796b_rust.rs
> > +++ b/drivers/net/phy/ax88796b_rust.rs
> > @@ -5,7 +5,12 @@
> > //!
> > //! C version of this driver: [`drivers/net/phy/ax88796b.c`](./ax88796b.c)
> > use kernel::{
> > - net::phy::{self, reg::C22, DeviceId, Driver},
> > + net::phy::{
> > + self,
> > + reg::C22,
> > + DeviceId,
> > + Driver, //
> > + },
>
> A question from somebody who does not know rust. Does the order of the
> elements in the list matter?
>
> Linux has a pattern of sorting multi line lists, because it reduces
> merge conflicts. Can this list be sorted?
No, the order does not matter. But rustfmt will complain if it's not
sorted. Note that rustfmt prefers ordering lower-case before
upper-case so it is currently sorted in the order preferred by the tool.
Alice