Repository navigation
Expand file tree
/
Copy pathclippy.toml
More file actions
64 lines (64 loc) · 6.15 KB
/
Copy pathclippy.toml
File metadata and controls
64 lines (64 loc) · 6.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Transcendental math goes through src/fmath.rs (issue #738): the platform
# libm rounds differently on macOS, Linux and in the browser, so a direct
# `f64::sin` makes seeded renders differ between platforms. Use `fmath::sin`
# and friends. sqrt, powi, to_radians, floor and the other exact or purely
# arithmetic methods are fine and not listed. Test code that only needs a
# reference value may `#![allow(clippy::disallowed_methods)]`.
disallowed-methods = [
{ path = "f64::sin", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::cos", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::tan", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::asin", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::acos", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::atan", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::atan2", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::sin_cos", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::exp", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::exp2", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::exp_m1", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::ln", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::ln_1p", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::log", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::log2", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::log10", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::powf", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::cbrt", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::hypot", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::sinh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::cosh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::tanh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::asinh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::acosh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f64::atanh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::sin", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::cos", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::tan", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::asin", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::acos", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::atan", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::atan2", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::sin_cos", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::exp", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::exp2", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::exp_m1", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::ln", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::ln_1p", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::log", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::log2", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::log10", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::powf", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::cbrt", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::hypot", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::sinh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::cosh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::tanh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::asinh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::acosh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "f32::atanh", reason = "use crate::fmath: one libm on every platform (issue #738)" },
{ path = "tiny_skia::Transform::from_rotate", reason = "its sin/cos are the platform libm: use crate::fmath::rotation (issue #738)" },
{ path = "tiny_skia::Transform::from_rotate_at", reason = "its sin/cos are the platform libm: build it from crate::fmath::rotation (issue #738)" },
{ path = "tiny_skia::Transform::pre_rotate", reason = "its sin/cos are the platform libm: build the matrix from crate::fmath::rotation (issue #738)" },
{ path = "tiny_skia::Transform::pre_rotate_at", reason = "its sin/cos are the platform libm: build the matrix from crate::fmath::rotation (issue #738)" },
{ path = "tiny_skia::Transform::post_rotate", reason = "its sin/cos are the platform libm: build the matrix from crate::fmath::rotation (issue #738)" },
{ path = "tiny_skia::Transform::post_rotate_at", reason = "its sin/cos are the platform libm: build the matrix from crate::fmath::rotation (issue #738)" },
]