Skip to content

Commit 3235c8b

Browse files
committed
refactor: forbid clippy::indexing_slicing
It is impossible to allow this in the new code now.
1 parent a5d336f commit 3235c8b

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

deltachat-contact-tools/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
clippy::explicit_into_iter_loop,
1616
clippy::cloned_instead_of_copied
1717
)]
18-
#![cfg_attr(not(test), warn(clippy::indexing_slicing))]
18+
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
1919
#![allow(
2020
clippy::match_bool,
2121
clippy::mixed_read_write_in_expression,

deltachat-jsonrpc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![recursion_limit = "256"]
2+
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
23
pub mod api;
34
pub use yerpc;
45

format-flowed/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! is assumed to be set to "no".
99
//!
1010
//! For received messages, DelSp parameter is honoured.
11+
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
1112

1213
/// Wraps line to 72 characters using format=flowed soft breaks.
1314
///

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
clippy::explicit_into_iter_loop,
1717
clippy::cloned_instead_of_copied
1818
)]
19-
#![cfg_attr(not(test), warn(clippy::indexing_slicing))]
19+
#![cfg_attr(not(test), forbid(clippy::indexing_slicing))]
2020
#![allow(
2121
clippy::match_bool,
2222
clippy::mixed_read_write_in_expression,

0 commit comments

Comments
 (0)