170 |
for i in 0..3 {
|
171 |
#[allow(clippy::manual_clamp)]
|
172 |
if closest[i] > self.max[i] {
|
253 |
#[allow(clippy::too_many_arguments, clippy::manual_clamp)]
|
254 |
pub fn collate_with_temp<P1, P2>(
|
47 |
#[allow(clippy::manual_clamp)]
|
48 |
fn main() -> anyhow::Result<()> {
|
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);
|
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 {
|
163 |
};
|
164 |
#[allow(clippy::manual_clamp)]
|
165 |
let place_out = |rp, rs, cp: i32, cs, ideal: i32| -> (i32, i32) {
|
178 |
// rust pls...
|
179 |
#[allow(clippy::manual_clamp)]
|
180 |
let tmp = (this.lazy_jump_dist - diff).min(min).max(0.0);
|
113 |
source_code.push_str(&replacement.content);
|
114 |
#[allow(clippy::manual_clamp)]
|
115 |
{
|
47 |
pub fn clamp_view_origin(&self, origin: Point) -> Point {
|
48 |
#![allow(clippy::manual_clamp)]
|
49 |
let x = origin
|
1 |
#![allow(clippy::manual_clamp)]
|
2 |
use crate::{Length, Padding, Size};
|
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.
|
1 |
#![allow(missing_docs, clippy::manual_clamp)]
|
1 |
//! Contains numerical helper traits and functions
|
2 |
#![allow(clippy::manual_clamp)]
|