Re: [PATCH v4 4/4] rust: add abstraction for `struct page`

From: Benno Lossin
Date: Sun Apr 07 2024 - 04:59:12 EST


On 05.04.24 09:44, Alice Ryhl wrote:
> On Fri, Apr 5, 2024 at 12:33 AM Benno Lossin <benno.lossin@protonme> wrote:
>>
>> On 04.04.24 14:31, Alice Ryhl wrote:
>>> +/// A bitwise shift for the page size.
>>> +#[allow(clippy::unnecessary_cast)]
>>
>> Why can't you remove the cast?
>
> Bindgen could decide to use a different type in the future or on
> different platforms.

Did that already happen?

I think that we might want to know if the type changes, since then the
value might change?

--
Cheers,
Benno