diff --git a/src/authres.rs b/src/authres.rs index 4d6e86d83..84504d1ee 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/configure.rs b/src/configure.rs index 990501468..c317f6819 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -611,8 +611,6 @@ pub enum Error { #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use super::*; use crate::config::Config; use crate::login_param::EnteredServerLoginParam; diff --git a/src/configure/auto_mozilla.rs b/src/configure/auto_mozilla.rs index 4560bf52d..1e007e901 100644 --- a/src/configure/auto_mozilla.rs +++ b/src/configure/auto_mozilla.rs @@ -272,8 +272,6 @@ pub(crate) async fn moz_autoconfigure( #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use super::*; #[test] diff --git a/src/configure/auto_outlook.rs b/src/configure/auto_outlook.rs index a3fef6f32..533305eba 100644 --- a/src/configure/auto_outlook.rs +++ b/src/configure/auto_outlook.rs @@ -215,8 +215,6 @@ pub(crate) async fn outlk_autodiscover( #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use super::*; #[test] diff --git a/src/location.rs b/src/location.rs index f2fa919b8..5dcc9a258 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; diff --git a/src/mimefactory.rs b/src/mimefactory.rs index 83556c0d0..fb294b107 100644 --- a/src/mimefactory.rs +++ b/src/mimefactory.rs @@ -2274,7 +2274,6 @@ mod tests { let msg = message.as_string(); let header_end = msg.find("Hi").unwrap(); - #[allow(clippy::indexing_slicing)] let headers = msg[0..header_end].trim(); assert!(!headers.lines().any(|l| l.trim().is_empty())); diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 095d4e12f..ac493514b 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -2362,8 +2362,6 @@ async fn ndn_maybe_add_info_msg( #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use mailparse::ParsedMail; use super::*; diff --git a/src/provider.rs b/src/provider.rs index a909d3ead..78aade13c 100644 --- a/src/provider.rs +++ b/src/provider.rs @@ -288,8 +288,6 @@ pub fn get_provider_by_id(id: &str) -> Option<&'static Provider> { #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use super::*; use crate::test_utils::TestContext; diff --git a/src/test_utils.rs b/src/test_utils.rs index 4a8473bc0..85d232ded 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -1,7 +1,6 @@ //! Utilities to help writing tests. //! //! This private module is only compiled for test runs. -#![allow(clippy::indexing_slicing)] use std::collections::{BTreeMap, HashSet}; use std::fmt::Write; use std::ops::{Deref, DerefMut}; diff --git a/src/tests/aeap.rs b/src/tests/aeap.rs index b2b599e0e..18ea10041 100644 --- a/src/tests/aeap.rs +++ b/src/tests/aeap.rs @@ -1,5 +1,3 @@ -#![allow(clippy::indexing_slicing)] - use anyhow::Result; use crate::chat; diff --git a/src/tools.rs b/src/tools.rs index 89c50759d..f4a72fec0 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -709,8 +709,6 @@ pub(crate) fn inc_and_check( #[cfg(test)] mod tests { - #![allow(clippy::indexing_slicing)] - use chrono::NaiveDate; use proptest::prelude::*;