• glv 3.0.5/src/history_adapter.rs
    239
            let mut stop: usize = 0;
    240
            #[allow(clippy::arithmetic)]
    241
            // arithmetic: `stop` is always <= `i` <= `usize::MAX`
    541
                let c = &commits[i];
    542
                #[allow(clippy::arithmetic)]
    543
                {
    563
                // std::ops::Rem is safe
    564
                #[allow(clippy::arithmetic)]
    565
                if seen % 100 == 0 {
  • glv 3.0.5/src/history_entry.rs
    154
            // arithmetic: if checks for `end` being large enough.
    155
            #[allow(clippy::arithmetic)]
    156
            if end - 6 > 0 && (&date[end - 6..end - 4] == " +" || &date[end - 6..end - 4] == " -") {
    160
            #[allow(clippy::arithmetic)]
    161
            if TIME_SPLIT_REGEX.is_match(date) {
    335
                        if let Some(word) = description.split_whitespace().last() {
    336
                            #[allow(clippy::arithmetic)]
    337
                            if word.starts_with('v')
  • glv 3.0.5/src/history_table.rs
    91
            let mut tmp: StyledArea<String> = vec![];
    92
            #[allow(clippy::arithmetic)]
    93
            // arithmetic: height is >= 4
  • glv 3.0.5/src/search.rs
    88
        let indices = haystack.match_indices(&needle);
    89
        #[allow(clippy::arithmetic)]
    90
        for (i, s) in indices {
  • glv 3.0.5/src/ui/base/paging.rs
    45
        #[cfg(not(tarpaulin_include))]
    46
        #[allow(clippy::arithmetic)]
    47
        /// arithmetic: this is only used during testing
    76
                    self.selected = self.selected.saturating_add(self.page_height.get());
    77
                    #[allow(clippy::arithmetic)]
    78
                    // arithmetic: total_length is always >= 1, because it's a NonZeroUsize
  • subject-classifier 0.4.2/src/lib.rs
    327
            #[allow(clippy::arithmetic)]
    328
            {