Re: [PATCH] rust: dmi: add basic DMI matching abstraction

From: Nick Dowsett

Date: Mon Nov 23 2026 - 04:05:28 EST


On Mon Nov 23, 2026 at 9:10 AM AWST, Miguel Ojeda wrote:
> On Mon, Nov 23, 2026 at 1:31 AM Nick Dowsett <nick42d@xxxxxxxxx> wrote:
>>
>> Just checking here - is this still applicable for doctests? I copied
>> some of the example from another subsystem. There could be some
>> conciseness benefits from not doing this here?
>
> Yeah, it keeps the rule simple (everything does the same thing) and
> also helps others get accustomed to the style when reading examples.
> In any case, for the example above it is hidden, so it doesn't matter
> much for the rendered form.
>
> (And, ideally, one day, `rustfmt` will be able to apply our formatting
> to the examples, so it would create a bigger diff if we don't follow
> the vertical formatting anyway.)

Sounds reasonable to me, no problems. This amendment will be in v2.

Nick