Re: [PATCH] rust: time: add `Delta::from_nanos`

From: Andreas Hindborg

Date: Mon Feb 16 2026 - 08:39:27 EST


"Alice Ryhl" <aliceryhl@xxxxxxxxxx> writes:

> On Sun, Feb 15, 2026 at 09:12:04PM +0100, Andreas Hindborg wrote:
>> Add a method to create a `Delta` from an amount of nanoseconds.
>>
>> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
>
> The change itself LGTM, but what is this for?

There is a few uses in the rust null block series. For compatibility
reasons, some config options are given as nano seconds [1].

>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>

Thanks.

Best regards,
Andreas Hindborg

[1] https://lore.kernel.org/r/20260216-rnull-v6-19-rc5-send-v1-8-de9a7af4b469@xxxxxxxxxx