From b300dbd347c63662d7921a5ecc924809a0b0703a Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 18 Nov 2024 11:16:35 +0000 Subject: [PATCH] refactor: remove unnecessary `allow(clippy::indexing_slicing)` clippy::indexing_slicing is already allowed in test builds. --- src/authres.rs | 1 - src/location.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/authres.rs b/src/authres.rs index 4d6e86d83f..84504d1ee2 100644 --- a/src/authres.rs +++ b/src/authres.rs @@ -260,7 +260,6 @@ fn parse_authservid_candidates_config(config: &Option) -> BTreeSet<&str> #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] use tokio::fs; use tokio::io::AsyncReadExt; diff --git a/src/location.rs b/src/location.rs index f2fa919b83..5dcc9a258b 100644 --- a/src/location.rs +++ b/src/location.rs @@ -880,8 +880,6 @@ async fn maybe_send_locations(context: &Context) -> Result> { #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use super::*; use crate::config::Config; use crate::message::MessageState;