From a062ed297498dab1cebbdb71b137710f7fdc84e5 Mon Sep 17 00:00:00 2001 From: Vincent Lafeychine <vincent.lafeychine@proton.me> Date: Sat, 27 Apr 2024 01:32:39 +0200 Subject: [PATCH] clippy: Fix op_ref --- rr_frontend/.cargo/config.toml | 1 - rr_frontend/translation/src/utils.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rr_frontend/.cargo/config.toml b/rr_frontend/.cargo/config.toml index 71156ede..d48705d3 100644 --- a/rr_frontend/.cargo/config.toml +++ b/rr_frontend/.cargo/config.toml @@ -81,7 +81,6 @@ rustflags = [ # clippy::style "-Aclippy::new_without_default", - "-Aclippy::op_ref", "-Aclippy::redundant_closure", "-Aclippy::redundant_field_names", "-Aclippy::redundant_pattern_matching", diff --git a/rr_frontend/translation/src/utils.rs b/rr_frontend/translation/src/utils.rs index d72f19a1..769056a8 100644 --- a/rr_frontend/translation/src/utils.rs +++ b/rr_frontend/translation/src/utils.rs @@ -719,7 +719,7 @@ pub fn filter_tool_attrs(attrs: &[ast::Attribute]) -> Vec<&ast::AttrItem> { let seg = item.path.segments.get(0)?; - if seg.ident.name.as_str() == &config::spec_hotword() { Some(item) } else { None } + if seg.ident.name.as_str() == config::spec_hotword() { Some(item) } else { None } }, _ => None, }) -- GitLab