Re: [PATCH V10 11/15] rust: cpufreq: Add initial abstractions for cpufreq framework
From: Benno Lossin
Date: Thu Apr 17 2025 - 04:00:55 EST
On Wed Apr 16, 2025 at 11:37 AM CEST, Viresh Kumar wrote:
> On 16-04-25, 11:14, Danilo Krummrich wrote:
>> On Wed, Apr 16, 2025 at 12:09:28PM +0530, Viresh Kumar wrote:
>> > +#[allow(dead_code)]
>>
>> Why is this needed?
>
> Looks like leftover from a previous version. Same for the other one.
>
> I have also made a change to the cpufreq driver now to remove
> `dead_code`, hope that is fine:
In the future, instead of using `allow`, you can try to use `expect`. It
will warn, when the code is used.
---
Cheers,
Benno