• advent-of-code 2022.0.46/src/year2018/day23.rs
    170
            for i in 0..3 {
    171
                #[allow(clippy::manual_clamp)]
    172
                if closest[i] > self.max[i] {
  • alevin-fry 0.8.1/src/collate.rs
    253
    #[allow(clippy::too_many_arguments, clippy::manual_clamp)]
    254
    pub fn collate_with_temp<P1, P2>(
  • alevin-fry 0.8.1/src/main.rs
    47
    #[allow(clippy::manual_clamp)]
    48
    fn main() -> anyhow::Result<()> {
  • druid 0.8.2/src/scroll_component.rs
    246
            let length = (percent_visible * viewport_major).ceil();
    247
            #[allow(clippy::manual_clamp)] // Usable space could be below the minimum bar size.
    248
            let length = length.max(bar_min_size).min(usable_space);
  • goodmetrics 1.3.2/src/pipeline/aggregation/tdigest.rs
    226
        // This is how it was upstream. Unsure if this is a preferred nan behavior
    227
        #[allow(clippy::manual_clamp)]
    228
        fn clamp(v: f64, lo: f64, hi: f64) -> f64 {
  • kas-core 0.12.1/src/root.rs
    163
            };
    164
            #[allow(clippy::manual_clamp)]
    165
            let place_out = |rp, rs, cp: i32, cs, ideal: i32| -> (i32, i32) {
  • rosu-pp 0.9.3/src/osu/difficulty_object.rs
    178
                // rust pls...
    179
                #[allow(clippy::manual_clamp)]
    180
                let tmp = (this.lazy_jump_dist - diff).min(min).max(0.0);
  • rspack_sources 0.1.17/src/replace_source.rs
    113
          source_code.push_str(&replacement.content);
    114
          #[allow(clippy::manual_clamp)]
    115
          {
  • druid 0.8.2/src/widget/clip_box.rs
    47
        pub fn clamp_view_origin(&self, origin: Point) -> Point {
    48
            #![allow(clippy::manual_clamp)]
    49
            let x = origin
  • iced_native 0.8.0/src/layout/limits.rs
    1
    #![allow(clippy::manual_clamp)]
    2
    use crate::{Length, Padding, Size};
  • rustix 0.36.7/src/lib.rs
    120
    // Clamp depends on Rust 1.50 which is newer than our MSRV.
    121
    #![allow(clippy::manual_clamp)]
    122
    // It is common in linux and libc APIs for types to vary between platforms.
  • saft-sdf 0.1.0/src/sdf.rs
    1
    #![allow(missing_docs, clippy::manual_clamp)]
  • taffy 0.3.0-alpha1/src/math.rs
    1
    //! Contains numerical helper traits and functions
    2
    #![allow(clippy::manual_clamp)]