Fix clippy lints
Like Smithay, disable `clippy::collapsible_match`. It seems prone to offering dubious suggestions.
This commit is contained in:
parent
826ad9a91a
commit
a5474e8c76
2 changed files with 4 additions and 8 deletions
|
|
@ -453,8 +453,7 @@ impl Config {
|
|||
.collect::<Vec<_>>();
|
||||
|
||||
let mut found_outputs = Vec::new();
|
||||
for (name, output_config) in infos.iter().map(|o| &o.connector).zip(configs.into_iter())
|
||||
{
|
||||
for (name, output_config) in infos.iter().map(|o| &o.connector).zip(configs) {
|
||||
let output = outputs.iter().find(|o| &o.name() == name).unwrap().clone();
|
||||
let enabled = output_config.enabled.clone();
|
||||
*output
|
||||
|
|
@ -478,11 +477,7 @@ impl Config {
|
|||
) {
|
||||
warn!(?err, "Failed to set new config.");
|
||||
found_outputs.clear();
|
||||
for (output, output_config) in outputs
|
||||
.clone()
|
||||
.into_iter()
|
||||
.zip(known_good_configs.into_iter())
|
||||
{
|
||||
for (output, output_config) in outputs.clone().into_iter().zip(known_good_configs) {
|
||||
let enabled = output_config.enabled.clone();
|
||||
*output
|
||||
.user_data()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#![allow(
|
||||
clippy::too_many_arguments,
|
||||
clippy::type_complexity,
|
||||
clippy::len_without_is_empty
|
||||
clippy::len_without_is_empty,
|
||||
clippy::collapsible_match
|
||||
)]
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue