Re: [PATCH v2 4/5] rust: time: Make HasHrTimer generic over HrTimerMode
From: FUJITA Tomonori
Date: Tue Jun 10 2025 - 08:13:37 EST
On Tue, 10 Jun 2025 13:25:37 +0200
Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>> struct Foo {
>> #[pin]
>> timer: HrTimer<Self>,
>> }
>>
>> impl_has_hr_timer! {
>> impl HasHrTimer<Self> for Foo {
>> mode : AbsoluteMode<Monotonic>,
>> field : self.timer
>> }
>
> Can you add an optional comma after the `field` entry? I think it is
> `$(,)?` in the macro declaration.
Sounds good. I'll send v3 shortly.