Re: [PATCH] rust: cpufreq: fix clippy::double_parens warning in Policy doctest
From: John Hubbard
Date: Wed Mar 04 2026 - 15:09:45 EST
On 3/4/26 12:06 PM, Gary Guo wrote:
> On Wed Mar 4, 2026 at 7:53 PM GMT, John Hubbard wrote:
>> Clippy reports:
>> warning: consider removing unnecessary double parentheses
>> --> rust/kernel/cpufreq.rs:410:60
>> |
>> 410 | pr_info!("The policy details are: {:?}\n", (policy.cpu(), policy.cur()));
>> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> This looks like a false positive, probably due to how our fmt macro works?
Probably, but in any case we need to remain clippy clean, so this
work-around seems about right, yes?
thanks,
--
John Hubbard