102 |
// some valid value which won't cause an overflow.
|
103 |
#[allow(clippy::arithmetic_side_effects, clippy::integer_arithmetic)]
|
104 |
char::from_u32(u32::from(char) + 1)
|
120 |
// some valid value which won't cause an underflow.
|
121 |
#[allow(clippy::arithmetic_side_effects, clippy::integer_arithmetic)]
|
122 |
char::from_u32(u32::from(char) - 1)
|
27 |
// making this basically impossible to be a problem
|
28 |
#[allow(clippy::arithmetic_side_effects)]
|
29 |
#[allow(clippy::as_conversions)]
|
66 |
let start = *indices.start();
|
67 |
#[allow(clippy::arithmetic_side_effects)]
|
68 |
let length = indices.end() - indices.start();
|
134 |
/// `frac_digit_count.max()`.
|
135 |
#[allow(clippy::arithmetic_side_effects, clippy::single_char_lifetime_names)]
|
136 |
pub fn try_from_dec_str<T>(
|
214 |
unsafe_code,
|
215 |
clippy::arithmetic_side_effects,
|
216 |
clippy::single_char_lifetime_names,
|
258 |
unsafe_code,
|
259 |
clippy::arithmetic_side_effects,
|
260 |
clippy::integer_arithmetic
|
459 |
/// Updates the cache with the pending events for 1 second
|
460 |
#[allow(clippy::integer_arithmetic, clippy::arithmetic_side_effects)]
|
461 |
async fn update(&mut self) -> Result<(), anyhow::Error> {
|
1778 |
// > 0`. Thus, neither the mod nor division operations here can panic.
|
1779 |
#[allow(clippy::arithmetic_side_effects)]
|
1780 |
let elems = {
|
1808 |
// > 0`. Thus, neither the mod nor division operations here can panic.
|
1809 |
#[allow(clippy::arithmetic_side_effects)]
|
1810 |
let elems = {
|
1831 |
// turn guarantees that this mod operation will not panic.
|
1832 |
#[allow(clippy::arithmetic_side_effects)]
|
1833 |
let remainder = addr % mem::align_of::<T>();
|
2244 |
let ptr = v.as_mut_ptr();
|
2245 |
#[allow(clippy::arithmetic_side_effects)]
|
2246 |
ptr.add(position).copy_to(ptr.add(position + additional), v.len() - position);
|
2247 |
ptr.add(position).write_bytes(0, additional);
|
2248 |
#[allow(clippy::arithmetic_side_effects)]
|
2249 |
v.set_len(v.len() + additional);
|
13 |
#![allow(clippy::expect_used)]
|
14 |
#![allow(clippy::arithmetic_side_effects)]
|
15 |
#![allow(clippy::integer_arithmetic)]
|
6 |
clippy::std_instead_of_core,
|
7 |
clippy::arithmetic_side_effects
|
8 |
)]
|
6 |
clippy::cast_sign_loss,
|
7 |
clippy::arithmetic_side_effects
|
8 |
)]
|
31 |
#![allow(clippy::multiple_crate_versions)]
|
32 |
#![allow(clippy::integer_arithmetic, clippy::arithmetic_side_effects)] // issue with strum
|
33 |
// restriction we ignore
|
38 |
clippy::implicit_return,
|
39 |
clippy::arithmetic_side_effects,
|
40 |
clippy::integer_arithmetic,
|