48 |
/// Perform the rendering.
|
49 |
#[allow(clippy::integer_division)]
|
50 |
#[inline]
|
8 |
/// This means it is NOT safe to use with e.g. an `enum`.
|
9 |
#[allow(clippy::integer_division)]
|
10 |
pub(crate) unsafe fn transmute_slice<Target: Copy, Source>(
|
215 |
for repoinfo in collections_vec.into_iter().take(limit as usize) {
|
216 |
#[allow(clippy::integer_division)]
|
217 |
let average_size = (repoinfo.total_size / u64::from(repoinfo.counter))
|
229 |
for chkout in collections_vec.into_iter().take(limit as usize) {
|
230 |
#[allow(clippy::integer_division)]
|
231 |
let average_size = (chkout.total_size / u64::from(chkout.counter))
|
203 |
for regcache in collections_vec.into_iter().take(limit as usize) {
|
204 |
#[allow(clippy::integer_division)]
|
205 |
let average_size = (regcache.total_size / u64::from(regcache.counter))
|
216 |
for regsrc in collections_vec.into_iter().take(limit as usize) {
|
217 |
#[allow(clippy::integer_division)]
|
218 |
let average_size = (regsrc.total_size / u64::from(regsrc.counter))
|
299 |
let len = welcome_message.len();
|
300 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
301 |
let padding = width.saturating_sub(len)/2;
|
210 |
#[allow(clippy::integer_division)] // It's fine.
|
211 |
#[must_use]
|
605 |
impl From<f32> for FloatKind {
|
606 |
#[allow(clippy::integer_division)]
|
607 |
fn from(num: f32) -> Self {
|
614 |
impl From<f64> for FloatKind {
|
615 |
#[allow(clippy::integer_division)]
|
616 |
fn from(num: f64) -> Self {
|
626 |
#[allow(clippy::cast_possible_truncation)]
|
627 |
#[allow(clippy::integer_division)]
|
628 |
/// # Parse Finite `f32`
|
672 |
#[allow(clippy::cast_possible_truncation)]
|
673 |
#[allow(clippy::integer_division)]
|
674 |
/// # Parse Finite `f64`
|
63 |
#[allow(clippy::integer_division)]
|
64 |
const STRETCH_LEN: usize = TREE_SIZE / 7;
|
344 |
/// Convert e.g. &[[u32; 3]] to three times as long slice of &[u32]
|
345 |
#[allow(clippy::integer_division)]
|
346 |
unsafe fn transmute_slice<Target: Copy, Source: Copy>(source: &[Source]) -> &[Target] {
|
116 |
/// ```
|
117 |
#[allow(clippy::integer_division)]
|
118 |
fn as_integer_ratio(self) -> (i128, i128) {
|
138 |
/// ```
|
139 |
#[allow(clippy::integer_division)]
|
140 |
fn numerator(self) -> i128 {
|
160 |
/// ```
|
161 |
#[allow(clippy::integer_division)]
|
162 |
fn denominator(self) -> i128 {
|
54 |
#[allow(clippy::integer_division)]
|
55 |
pub(crate) fn checked_div_rounded(
|
72 |
#[allow(clippy::integer_division)]
|
73 |
#[inline]
|
23 |
impl DivModInt for i128 {
|
24 |
#[allow(clippy::integer_division)]
|
25 |
#[inline(always)]
|
151 |
/// ```
|
152 |
#[allow(clippy::integer_division)]
|
153 |
#[inline]
|
442 |
#[allow(clippy::integer_division)]
|
443 |
fn handle_common_list_input(
|
71 |
// Copyright (c) 2015 Alexandre Bury - MIT License
|
72 |
#[allow(clippy::cast_sign_loss, clippy::integer_division)]
|
73 |
fn find_color(color_mode: ColorMode, color: Color) -> CrosstermColor {
|
140 |
/// the "slow" phase before switching to the "fast" phase.
|
141 |
#[allow(clippy::integer_division)]
|
142 |
const SLOW_LIMIT: u16 = Self::PRECHECK_LIMIT / 10;
|
92 |
let mut y;
|
93 |
#[allow(clippy::integer_division)]
|
94 |
if direction_just_jumped == 1 {
|
197 |
Key::Char('H') => self.cursor_position.y = self.offset.y,
|
198 |
#[allow(clippy::integer_division)]
|
199 |
Key::Char('M') => self.cursor_position.y = self.offset.y.saturating_add(usize::from(self.terminal.size().height / 2)).saturating_sub(1),
|
308 |
let len = welcome_message.len();
|
309 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
310 |
let padding = width.saturating_sub(len) / 2;
|
323 |
}
|
324 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
325 |
fn draw_rows(&self) {
|
51 |
#[must_use]
|
52 |
#[allow(clippy::integer_division)]
|
53 |
pub fn calculate_ticks(channels: i32, buffer_size: i32) -> i32 {
|
196 |
val.deep_size_of_children(context)).sum();
|
197 |
#[allow(clippy::integer_division)]
|
198 |
{ internal + self.len() * node_overhead * 2 / (MAX + MIN) }
|
201 |
}
|
202 |
#[allow(clippy::integer_division)]
|
203 |
{
|
22 |
#[must_use]
|
23 |
#[allow(clippy::indexing_slicing, clippy::integer_arithmetic, clippy::integer_division)]
|
24 |
pub fn contains(&self, item: &T) -> bool {
|
302 |
let len = welcome_message.len();
|
303 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
304 |
let padding = width.saturating_sub(len) / 2;
|
316 |
}
|
317 |
#[allow(clippy::integer_division, clippy::integer_arithmetic)]
|
318 |
fn draw_rows(&self) {
|
607 |
let len = welcome_message.len();
|
608 |
#[allow(clippy::integer_arithmetic, clippy::integer_division)]
|
609 |
let padding = width.saturating_sub(len) / 2;
|
621 |
}
|
622 |
#[allow(clippy::integer_division, clippy::integer_arithmetic)]
|
623 |
fn draw_rows(&self) {
|
669 |
impl From<u32> for Utc2k {
|
670 |
#[allow(clippy::integer_division)]
|
671 |
/// # From Timestamp.
|
17 |
#[allow(clippy::cast_possible_truncation)] // It fits.
|
18 |
#[allow(clippy::integer_division)]
|
19 |
/// # Parse Date From Seconds.
|
192 |
#[allow(clippy::cast_possible_truncation)] // It fits.
|
193 |
#[allow(clippy::integer_division)] // We want it.
|
194 |
#[must_use]
|
10 |
#![allow(clippy::cast_lossless)]
|
11 |
#![allow(clippy::integer_division)]
|
12 |
#![allow(clippy::cast_possible_truncation)]
|
24 |
clippy::integer_arithmetic,
|
25 |
clippy::integer_division,
|
26 |
clippy::missing_panics_doc,
|
332 |
clippy::if_not_else,
|
333 |
clippy::integer_division,
|
334 |
clippy::map_err_ignore,
|
22 |
clippy::integer_arithmetic,
|
23 |
clippy::integer_division,
|
24 |
clippy::module_name_repetitions,
|
29 |
#![allow(clippy::integer_arithmetic)]
|
30 |
#![allow(clippy::integer_division)]
|
31 |
#![allow(clippy::let_underscore_must_use)]
|
31 |
#![allow(clippy::integer_arithmetic)]
|
32 |
#![allow(clippy::integer_division)]
|
33 |
#![allow(clippy::let_underscore_must_use)]
|
70 |
#![allow(clippy::integer_arithmetic)]
|
71 |
#![allow(clippy::integer_division)]
|
72 |
#![allow(clippy::let_underscore_must_use)]
|
22 |
clippy::integer_arithmetic,
|
23 |
clippy::integer_division,
|
24 |
clippy::module_name_repetitions,
|
22 |
clippy::integer_arithmetic,
|
23 |
clippy::integer_division,
|
24 |
clippy::module_name_repetitions,
|
74 |
// LINT-REPLACE-END
|
75 |
#![allow(clippy::as_conversions, clippy::integer_division, clippy::module_name_repetitions)]
|
9 |
clippy::integer_arithmetic,
|
10 |
clippy::integer_division,
|
11 |
clippy::large_enum_variant,
|
28 |
// We use integer division when we want to discard any decimal parts
|
29 |
#![allow(clippy::integer_division)]
|
30 |
// In tests, we make sure `as` conversions are correct.
|
9 |
clippy::panic_in_result_fn,
|
10 |
clippy::integer_division,
|
11 |
clippy::integer_arithmetic,
|
70 |
clippy::indexing_slicing, clippy::inline_asm_x86_intel_syntax,
|
71 |
clippy::integer_arithmetic, clippy::integer_division,
|
72 |
clippy::match_on_vec_items, clippy::missing_errors_doc,
|
60 |
clippy::single_char_lifetime_names,
|
61 |
clippy::integer_division,
|
62 |
clippy::separated_literal_suffix,
|
19 |
clippy::single_char_lifetime_names,
|
20 |
clippy::integer_division,
|
21 |
clippy::separated_literal_suffix,
|
339 |
clippy::if_not_else,
|
340 |
clippy::integer_division,
|
341 |
clippy::map_err_ignore,
|
340 |
clippy::if_not_else,
|
341 |
clippy::integer_division,
|
342 |
clippy::map_err_ignore,
|
332 |
clippy::if_not_else,
|
333 |
clippy::integer_division,
|
334 |
clippy::map_err_ignore,
|
5 |
#![allow(clippy::integer_division)]
|