refactor: forbid clippy::indexing_slicing

It is impossible to allow this in the new code now.
This commit is contained in:
link2xt
2024-11-18 20:11:16 +00:00
committed by l
parent a5d336fafc
commit 3235c8bc9f
4 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
clippy::explicit_into_iter_loop,
clippy::cloned_instead_of_copied
)]
#![cfg_attr(not(test), warn(clippy::indexing_slicing))]
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
#![allow(
clippy::match_bool,
clippy::mixed_read_write_in_expression,

View File

@@ -1,4 +1,5 @@
#![recursion_limit = "256"]
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
pub mod api;
pub use yerpc;

View File

@@ -8,6 +8,7 @@
//! is assumed to be set to "no".
//!
//! For received messages, DelSp parameter is honoured.
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
/// Wraps line to 72 characters using format=flowed soft breaks.
///

View File

@@ -16,7 +16,7 @@
clippy::explicit_into_iter_loop,
clippy::cloned_instead_of_copied
)]
#![cfg_attr(not(test), warn(clippy::indexing_slicing))]
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
#![allow(
clippy::match_bool,
clippy::mixed_read_write_in_expression,