Re: [PATCH v5 3/7] rust: time: add Delta::as_millis_ceil()

FUJITA Tomonori <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
On Thu, 06 Aug 2026 11:47:41 +0200
Andreas Hindborg <[email protected]> wrote:

> FUJITA Tomonori <[email protected]> writes:
> 
>> From: FUJITA Tomonori <[email protected]>
>>
>> Add a ceiling variant, mirroring the existing as_micros_ceil() since
>> the existing as_millis() truncates towards zero.
>>
>> Reviewed-by: Gary Guo <[email protected]>
>> Signed-off-by: FUJITA Tomonori <[email protected]>
> 
> Did you want to extract the common code between this one and the fix you
> posed:
> 
> https://lore.kernel.org/r/[email protected]

Yes, the two are identical apart from the divisor and the C helper.

I plan to extract the common part in a follow-up patch.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.