357 |
buf[MAX_SOURCEID_LENGTH] = bytes.len() as u8;
|
358 |
#[allow(clippy::redundant_slicing)]
|
359 |
buf[..bytes.len()].clone_from_slice(&bytes[..]);
|
1378 |
#[test]
|
1379 |
#[allow(clippy::redundant_slicing)]
|
1380 |
fn index() {
|
96 |
#[test]
|
97 |
#[allow(clippy::redundant_slicing)]
|
98 |
fn compare_ascii_str_slice() {
|
214 |
let val_meta = ValueMeta::from(next);
|
215 |
#[allow(clippy::redundant_slicing)]
|
216 |
match val_meta.type_code() {
|
228 |
} else {
|
229 |
#[allow(clippy::redundant_slicing)]
|
230 |
(&payload[..], "")
|
186 |
// and unavailable for the from_utf8_unchecked() access
|
187 |
#[allow(clippy::redundant_slicing)]
|
188 |
let mut cursor = std::io::Cursor::new(&mut buf[..]);
|
228 |
} else {
|
229 |
#[allow(clippy::redundant_slicing)]
|
230 |
(&payload[..], "")
|
69 |
r.read_exact(hash)?;
|
70 |
#[allow(clippy::redundant_slicing)]
|
71 |
let delta = RefDelta {
|
286 |
#[allow(clippy::redundant_slicing)]
|
287 |
#[allow(dead_code)]
|
76 |
// This is equivalent to `mpn_redc_1` from `mpn/generic/redc_1.c`, GMP 6.2.1.
|
77 |
#[allow(clippy::redundant_slicing)]
|
78 |
fn limbs_redc_limb_raw(out: &mut [Limb], xs: &mut [Limb], ms: &[Limb], m_inv: Limb) -> bool {
|
448 |
clippy::cmp_owned,
|
449 |
clippy::redundant_slicing,
|
450 |
clippy::iter_cloned_collect,
|
504 |
clippy::iter_cloned_collect,
|
505 |
clippy::redundant_slicing,
|
506 |
clippy::needless_borrow
|
568 |
#[test]
|
569 |
#[allow(clippy::redundant_slicing)]
|
570 |
fn fns_defined_for_bytes_vec() {
|
342 |
if let Ok(topic) = psrt::pubsub::prepare_topic(std::str::from_utf8(&buf)?) {
|
343 |
#[allow(clippy::redundant_slicing)]
|
344 |
if topic.contains(TOPIC_INVALID_SYMBOLS) {
|
969 |
let topic = psrt::pubsub::prepare_topic(topic).map_err(|e| (e, need_ack))?;
|
970 |
#[allow(clippy::redundant_slicing)]
|
971 |
if topic.contains(TOPIC_INVALID_SYMBOLS) {
|
305 |
let len = len_utf8(code);
|
306 |
#[allow(clippy::redundant_slicing)]
|
307 |
match (len, &mut dst[..]) {
|
6 |
// For macros
|
7 |
clippy::redundant_slicing,
|
8 |
)]
|
6 |
// For macros
|
7 |
clippy::redundant_slicing,
|
8 |
)]
|
7 |
// Deliberate
|
8 |
clippy::redundant_slicing,
|
9 |
)]
|
5 |
#![allow(clippy::upper_case_acronyms)]
|
6 |
#![allow(clippy::redundant_slicing)]
|
7 |
#![allow(clippy::unnecessary_wraps)]
|
1 |
#![allow(clippy::redundant_slicing)]
|
2 |
use std::borrow::{Borrow, Cow};
|
14 |
clippy::eq_op,
|
15 |
clippy::redundant_slicing,
|
16 |
clippy::iter_count,
|
75 |
*/
|
76 |
#![allow(clippy::redundant_slicing)]
|
5 |
#![allow(clippy::upper_case_acronyms)]
|
6 |
#![allow(clippy::redundant_slicing)]
|
7 |
#![allow(clippy::unnecessary_wraps)]
|