76 |
let i = v as i64;
|
77 |
#[allow(clippy::float_cmp)]
|
78 |
if i as f64 == v {
|
83 |
let i = v as i64;
|
84 |
#[allow(clippy::float_cmp)]
|
85 |
if i as f64 == v {
|
152 |
#[track_caller]
|
153 |
#[allow(clippy::float_cmp)]
|
154 |
pub fn set_view_transform(&mut self, eye_to_world_transform: ViewTransform) {
|
300 |
if axis == 3 {
|
301 |
#[allow(clippy::float_cmp)]
|
302 |
if rounded != expected_w {
|
239 |
clippy::cast_precision_loss,
|
240 |
clippy::float_cmp
|
241 |
)]
|
73 |
/// Draws a scene with the given pipeline.
|
74 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))] // cmp just used to recognize change
|
75 |
pub fn draw<'a, P>(&mut self, pipe: &mut P, data: <P as PipelineData<'a>>::Data)
|
250 |
#[allow(clippy::float_cmp)] // cmp just used to recognize change
|
251 |
fn run(&mut self, (dimensions, mut cameras, mut ortho_cameras): Self::SystemData) {
|
152 |
// TODO: Why does clippy think CxxImageSet.ImageBuffer() is &[f64]?
|
153 |
#[allow(clippy::float_cmp)]
|
154 |
mod tests_aoflagger {
|
220 |
// floats, but is here to ensure we are able to extract an f64 value
|
221 |
#[allow(clippy::float_cmp)]
|
222 |
fn it_returns_f64_for_float_values() {
|
37 |
// We do want to know if a and b are *exactly* the same.
|
38 |
#[allow(clippy::float_cmp)]
|
39 |
if a == b {
|
472 |
#[test]
|
473 |
#[allow(clippy::float_cmp)]
|
474 |
fn test_as_typed_data() {
|
586 |
#[test]
|
587 |
#[allow(clippy::float_cmp)]
|
588 |
fn test_into_f64() {
|
639 |
#[test]
|
640 |
#[allow(clippy::float_cmp)]
|
641 |
fn test_abs() {
|
739 |
#[test]
|
740 |
#[allow(clippy::float_cmp)]
|
741 |
fn runge_kutta_fehlberg_struct() {
|
652 |
#[allow(clippy::float_cmp)]
|
653 |
#[test]
|
451 |
#[test]
|
452 |
#[allow(clippy::float_cmp)]
|
453 |
fn test_from_fmat() {
|
451 |
#[test]
|
452 |
#[allow(clippy::float_cmp)]
|
453 |
fn test_from_fmat() {
|
861 |
#[test]
|
862 |
#[allow(clippy::float_cmp)]
|
863 |
fn leverrier_algorithm_f64() {
|
893 |
#[test]
|
894 |
#[allow(clippy::float_cmp)]
|
895 |
fn leverrier_algorithm_f32() {
|
926 |
#[test]
|
927 |
#[allow(clippy::float_cmp)]
|
928 |
fn leverrier_1x1_matrix_f32() {
|
942 |
#[test]
|
943 |
#[allow(clippy::float_cmp)]
|
944 |
fn leverrier_1x1_matrix_f64() {
|
853 |
#[test]
|
854 |
#[allow(clippy::float_cmp)]
|
855 |
fn runge_kutta_fehlberg_struct() {
|
400 |
#[test]
|
401 |
#[allow(clippy::float_cmp)]
|
402 |
fn matrix_trace() {
|
461 |
#[test]
|
462 |
#[allow(clippy::float_cmp)]
|
463 |
fn maximum_absolute_value() {
|
469 |
#[test]
|
470 |
#[allow(clippy::float_cmp)]
|
471 |
fn identity_matrix() {
|
475 |
#[test]
|
476 |
#[allow(clippy::float_cmp)]
|
477 |
fn indexing() {
|
322 |
#[test]
|
323 |
#[allow(clippy::float_cmp)]
|
324 |
fn rational_function_creation() {
|
69 |
impl BsonExt for Bson {
|
70 |
#[allow(clippy::float_cmp)]
|
71 |
fn try_as_bool(&self) -> Option<bool> {
|
154 |
#[allow(clippy::float_cmp, clippy::cast_lossless, clippy::cast_precision_loss)]
|
155 |
fn visit_f64<E: serde::de::Error>(self, v: f64) -> Result<Self::Value, E> {
|
58 |
#[test]
|
59 |
#[allow(clippy::float_cmp)]
|
60 |
fn inserting_an_entity_after_deleting_should_work() -> Result<()> {
|
27 |
#[test]
|
28 |
#[allow(clippy::float_cmp)]
|
29 |
fn integration_test_point_resource_mut() -> Result<()> {
|
30 |
#[test]
|
31 |
#[allow(clippy::float_cmp)]
|
32 |
fn integration_test_point_resource_mut() -> Result<()> {
|
108 |
#[test]
|
109 |
#[allow(clippy::float_cmp)]
|
110 |
fn run_query() -> Result<()> {
|
41 |
#[cfg(test)]
|
42 |
#[allow(clippy::float_cmp)]
|
43 |
mod test {
|
19 |
#[test]
|
20 |
#[allow(clippy::float_cmp)]
|
21 |
fn query_for_entities() -> Result<()> {
|
120 |
#[test]
|
121 |
#[allow(clippy::float_cmp)]
|
122 |
fn deleting_an_entity() -> Result<()> {
|
910 |
#[cfg(test)]
|
911 |
#[allow(clippy::float_cmp, clippy::approx_constant)]
|
912 |
mod tests {
|
72 |
) {
|
73 |
#[allow(clippy::float_cmp)]
|
74 |
if state.prev_window_size == *window_size
|
362 |
#[cfg(test)]
|
363 |
#[allow(clippy::float_cmp, clippy::approx_constant)]
|
364 |
mod tests {
|
163 |
// Instead, this code checks if a f64 fits inside an f32.
|
164 |
#[allow(clippy::float_cmp)]
|
165 |
fn any_float(f: f64) -> Result<AnyNum> {
|
434 |
#[cfg(test)]
|
435 |
#[allow(clippy::float_cmp)]
|
436 |
mod tests {
|
417 |
#[cfg(test)]
|
418 |
#[allow(clippy::float_cmp)]
|
419 |
mod tests {
|
82 |
#[allow(clippy::float_cmp)]
|
83 |
if *last_scale_factor == scale_factor {
|
559 |
/// width and height.
|
560 |
#[allow(clippy::float_cmp)]
|
561 |
pub fn set_resolution(&mut self, width: f32, height: f32) {
|
574 |
/// Override the os-reported scaling factor.
|
575 |
#[allow(clippy::float_cmp)]
|
576 |
pub fn set_scale_factor_override(&mut self, scale_factor: Option<f64>) {
|
139 |
#[test]
|
140 |
#[allow(clippy::float_cmp)]
|
141 |
fn run_query() -> Result<()> {
|
60 |
#[cfg(test)]
|
61 |
#[allow(clippy::float_cmp)]
|
62 |
mod tests {
|
26 |
#[test]
|
27 |
#[allow(clippy::float_cmp)]
|
28 |
fn query_for_entities() -> Result<()> {
|
139 |
#[test]
|
140 |
#[allow(clippy::float_cmp)]
|
141 |
fn deleting_an_entity() -> Result<()> {
|
451 |
#[test]
|
452 |
#[allow(clippy::float_cmp)]
|
453 |
fn test_from_fmat() {
|
8 |
#[allow(clippy::float_cmp)]
|
9 |
#[test]
|
111 |
#[test]
|
112 |
#[allow(clippy::float_cmp)]
|
113 |
fn function_prototype_length() {
|
4 |
#[inline]
|
5 |
#[allow(clippy::float_cmp)]
|
6 |
pub(crate) fn f64_to_int32(number: f64) -> i32 {
|
1052 |
#[inline]
|
1053 |
#[allow(clippy::float_cmp)]
|
1054 |
pub(crate) fn is_float_integer(number: f64) -> bool {
|
1062 |
#[inline]
|
1063 |
#[allow(clippy::float_cmp)]
|
1064 |
pub(crate) fn equal(x: f64, y: f64) -> bool {
|
1071 |
/// <https://tc39.es/ecma262/#sec-numeric-types-number-sameValue>
|
1072 |
#[allow(clippy::float_cmp)]
|
1073 |
pub(crate) fn same_value(a: f64, b: f64) -> bool {
|
1084 |
#[inline]
|
1085 |
#[allow(clippy::float_cmp)]
|
1086 |
pub(crate) fn same_value_zero(x: f64, y: f64) -> bool {
|
1094 |
#[inline]
|
1095 |
#[allow(clippy::float_cmp)]
|
1096 |
pub(crate) fn less_than(x: f64, y: f64) -> AbstractRelation {
|
8 |
#[allow(clippy::float_cmp)]
|
9 |
#[test]
|
111 |
#[test]
|
112 |
#[allow(clippy::float_cmp)]
|
113 |
fn function_prototype_length() {
|
689 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow
|
690 |
#[allow(clippy::float_cmp)]
|
691 |
pub(crate) fn pow(_: &JsValue, args: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
|
728 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round
|
729 |
#[allow(clippy::float_cmp)]
|
730 |
pub(crate) fn round(_: &JsValue, args: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
|
4 |
#[inline]
|
5 |
#[allow(clippy::float_cmp)]
|
6 |
pub(crate) fn f64_to_int32(number: f64) -> i32 {
|
1098 |
#[inline]
|
1099 |
#[allow(clippy::float_cmp)]
|
1100 |
pub(crate) fn is_float_integer(number: f64) -> bool {
|
1108 |
#[inline]
|
1109 |
#[allow(clippy::float_cmp)]
|
1110 |
pub(crate) fn equal(x: f64, y: f64) -> bool {
|
1117 |
/// <https://tc39.es/ecma262/#sec-numeric-types-number-sameValue>
|
1118 |
#[allow(clippy::float_cmp)]
|
1119 |
pub(crate) fn same_value(a: f64, b: f64) -> bool {
|
1130 |
#[inline]
|
1131 |
#[allow(clippy::float_cmp)]
|
1132 |
pub(crate) fn same_value_zero(x: f64, y: f64) -> bool {
|
79 |
for hitbox_group in &mut hitbox_groups {
|
80 |
#[allow(clippy::float_cmp)]
|
81 |
if hitbox_group[0].next_size == hitbox.next_size
|
292 |
// transN
|
293 |
#[allow(clippy::float_cmp)]
|
294 |
let _color = if frame.ecb.transn_y == frame.ecb.bottom {
|
1451 |
}
|
1452 |
#[allow(clippy::float_cmp)]
|
1453 |
Expression::Binary (binary) => {
|
111 |
#[allow(clippy::float_cmp)]
|
112 |
fn simplify_binary(operator: &Operator, left: &Component, right: &Component) -> Simplified {
|
114 |
#[test]
|
115 |
#[allow(clippy::float_cmp)]
|
116 |
fn test_inflation_basic() {
|
134 |
#[test]
|
135 |
#[allow(clippy::float_cmp)]
|
136 |
fn test_inflation_fixed() {
|
129 |
#[test]
|
130 |
#[allow(clippy::float_cmp)]
|
131 |
fn test_years_as_slots() {
|
177 |
#[test]
|
178 |
#[allow(clippy::float_cmp)]
|
179 |
#[allow(clippy::excessive_precision)]
|
235 |
#[test]
|
236 |
#[allow(clippy::float_cmp)]
|
237 |
fn tags() {
|
268 |
#[test]
|
269 |
#[allow(clippy::float_cmp)]
|
270 |
fn type_test() {
|
320 |
#[test]
|
321 |
#[allow(clippy::float_cmp)]
|
322 |
fn decode_to_test() {
|
418 |
for exponent in 0..8 {
|
419 |
#[allow(clippy::float_cmp)]
|
420 |
if CommonConfig::config_to_deviation(mantissa, exponent) == deviation {
|
549 |
for exponent in 0..4 {
|
550 |
#[allow(clippy::float_cmp)]
|
551 |
if bandwidth == RXConfig::config_to_bandwidth(mantissa, exponent) {
|
59 |
#[allow(clippy::float_cmp)]
|
60 |
if params.output_offset_scale != 1.0 {
|
27 |
saturation = 0.0;
|
28 |
#[allow(clippy::float_cmp)]
|
29 |
if lightness != 0.0 && lightness != 1.0 {
|
37 |
let mut hue = 0.0;
|
38 |
#[allow(clippy::float_cmp)]
|
39 |
if max_scaled == values_scaled[0] {
|
25 |
#[allow(clippy::float_cmp)]
|
26 |
#[cfg(test)]
|
276 |
#[allow(clippy::float_cmp)]
|
277 |
fn comparison(&self, other: &Self) -> Changed<Self::Change> {
|
299 |
#[allow(clippy::float_cmp)]
|
300 |
fn comparison(&self, other: &Self) -> Changed<Self::Change> {
|
53 |
#[allow(clippy::float_cmp)]
|
54 |
fn ron_to_raw_value(
|
252 |
#[tokio::test]
|
253 |
#[allow(clippy::float_cmp)]
|
254 |
async fn ignore_does_not_change_limits() {
|
263 |
#[tokio::test]
|
264 |
#[allow(clippy::float_cmp)]
|
265 |
async fn dropped_reduces_limit() {
|
275 |
#[tokio::test]
|
276 |
#[allow(clippy::float_cmp)]
|
277 |
async fn success_increases_limit_if_sufficient_requests_are_in_flight() {
|
86 |
#[allow(clippy::float_cmp)]
|
87 |
fn test_doubles(value: f64, string: &str) {
|
56 |
#[test]
|
57 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
58 |
fn test_simple() {
|
79 |
#[test]
|
80 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
81 |
fn test_nested() {
|
96 |
#[test]
|
97 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
98 |
fn test_pin() {
|
1022 |
#[test]
|
1023 |
#[allow(clippy::float_cmp)]
|
1024 |
fn no_basic_rounding_error() -> Result<(), Box<dyn std::error::Error>> {
|
1037 |
#[test]
|
1038 |
#[allow(clippy::float_cmp)]
|
1039 |
fn no_edge_case_rounding_error_f32() -> Result<(), Box<dyn std::error::Error>> {
|
1058 |
#[test]
|
1059 |
#[allow(clippy::float_cmp)]
|
1060 |
fn no_edge_case_rounding_error_f64() -> Result<(), Box<dyn std::error::Error>> {
|
48 |
}
|
49 |
#[allow(clippy::float_cmp)]
|
50 |
pub fn to_hsl(self) -> Hsl {
|
697 |
#[test]
|
698 |
#[allow(clippy::float_cmp)]
|
699 |
fn half_convert() {
|
513 |
#[allow(clippy::while_immutable_condition)]
|
514 |
#[allow(clippy::float_cmp)]
|
515 |
fn build_input_stream_raw<D, E>(
|
258 |
// so checking for equality should be fine here.
|
259 |
#[allow(clippy::float_cmp)]
|
260 |
pub fn update_depth(&mut self, depth: Option<f32>) {
|
307 |
// The value should be exact in this case
|
308 |
#[allow(clippy::float_cmp)]
|
309 |
fn rotation_and_trans_value(rotation: f64, translation: (f64, f64)) -> bool {
|
152 |
let positive_delta_seconds = delta_seconds.max(0.0);
|
153 |
#[allow(clippy::float_cmp)]
|
154 |
if delta_seconds != positive_delta_seconds {
|
159 |
let positive_delta_seconds = delta_seconds.max(0.0);
|
160 |
#[allow(clippy::float_cmp)]
|
161 |
if delta_seconds != positive_delta_seconds {
|
310 |
#[inline]
|
311 |
#[allow(clippy::float_cmp)]
|
312 |
fn serialize_f32(self, value: f32) -> Result<()> {
|
333 |
#[inline]
|
334 |
#[allow(clippy::float_cmp)]
|
335 |
fn serialize_f64(self, value: f64) -> Result<()> {
|
882 |
#[allow(clippy::float_cmp)]
|
883 |
fn hsv_to_hsl(h: f64, s: f64, v: f64) -> (f64, f64, f64) {
|
906 |
#[allow(clippy::float_cmp)]
|
907 |
fn rgb_to_hsv(r: f64, g: f64, b: f64) -> (f64, f64, f64) {
|
932 |
#[allow(clippy::float_cmp)]
|
933 |
fn rgb_to_hsl(r: f64, g: f64, b: f64) -> (f64, f64, f64) {
|
194 |
#[cfg(test)]
|
195 |
#[allow(clippy::float_cmp)]
|
196 |
mod tests {
|
190 |
#[must_use]
|
191 |
#[allow(clippy::float_cmp, clippy::many_single_char_names)]
|
192 |
pub fn linear_to_hsv([r, g, b]: [f32; 3]) -> [f32; 3] {
|
362 |
impl XNodeWrite for InstanceRigidBodyCommon {
|
363 |
#[allow(clippy::float_cmp)]
|
364 |
fn write_to<W: Write>(&self, w: &mut XWriter<W>) -> Result<()> {
|
138 |
#[inline]
|
139 |
#[allow(clippy::float_cmp)]
|
140 |
fn write_cbor<W: Write>(&self, w: &mut W) -> Result<()> {
|
159 |
#[inline]
|
160 |
#[allow(clippy::float_cmp)]
|
161 |
fn write_cbor<W: Write>(&self, w: &mut W) -> Result<()> {
|
660 |
#[test]
|
661 |
#[allow(clippy::float_cmp)] // we want exact equality
|
662 |
fn number_succeeds() {
|
678 |
#[test]
|
679 |
#[allow(clippy::float_cmp)] // we want exact equality
|
680 |
fn float_without_quotes() {
|
183 |
#[test]
|
184 |
#[allow(clippy::float_cmp)]
|
185 |
fn test_to_f32() {
|
249 |
#[test]
|
250 |
#[allow(clippy::float_cmp)]
|
251 |
fn test_to_f64() {
|
873 |
#[allow(clippy::float_cmp)]
|
874 |
fn signal_is_float_in_rust(signal: &Signal) -> bool {
|
385 |
#[test]
|
386 |
#[allow(clippy::float_cmp)]
|
387 |
fn intrinsic_ord_primitive() {
|
1844 |
#[allow(clippy::eq_op)]
|
1845 |
#[allow(clippy::float_cmp)]
|
1846 |
#[allow(clippy::zero_divided_by_zero)]
|
1864 |
#[allow(clippy::eq_op)]
|
1865 |
#[allow(clippy::float_cmp)]
|
1866 |
#[allow(clippy::zero_divided_by_zero)]
|
572 |
#[test]
|
573 |
#[allow(clippy::float_cmp)]
|
574 |
fn hit_test_empty_string() {
|
48 |
#[allow(clippy::float_cmp)]
|
49 |
if params.output_offset_scale != 1.0 {
|
178 |
#[test]
|
179 |
#[allow(clippy::float_cmp)]
|
180 |
fn new_sets_values() {
|
203 |
#[test]
|
204 |
#[allow(clippy::float_cmp)]
|
205 |
fn from_sets_values() {
|
219 |
#[test]
|
220 |
#[allow(clippy::float_cmp)]
|
221 |
fn from_gets_values() {
|
545 |
#[test]
|
546 |
#[allow(clippy::float_cmp)]
|
547 |
fn area() {
|
61 |
impl Controller<AppState, RawLabel<AppState>> for LabelController {
|
62 |
#[allow(clippy::float_cmp)]
|
63 |
fn update(
|
100 |
#[test]
|
101 |
#[allow(clippy::float_cmp)]
|
102 |
fn as_double_conversion_test() {
|
230 |
#[test]
|
231 |
#[allow(clippy::float_cmp)]
|
232 |
fn parse_f64_test() {
|
95 |
#[allow(clippy::float_cmp)]
|
96 |
#[test]
|
36 |
#[allow(clippy::float_cmp)]
|
37 |
#[cfg(test)]
|
179 |
match scaling {
|
180 |
#[allow(clippy::float_cmp)]
|
181 |
ScalingMode::Fixed => {
|
244 |
fn animate_value(v: &mut f32, dir: f32, dt: f32, next_update: &mut NextUpdate) {
|
245 |
#[allow(clippy::float_cmp)]
|
246 |
if v.signum() != dir {
|
28 |
#[cfg(test)]
|
29 |
#[allow(clippy::float_cmp)]
|
30 |
#[test]
|
444 |
#[allow(clippy::float_cmp)]
|
445 |
#[test]
|
528 |
// Missing estimates are logged but do not cause a failure, whatever is available is returned
|
529 |
#[allow(clippy::float_cmp)]
|
530 |
pub fn estimatesmartfee_batch(&self, conf_targets: &[u16]) -> Result<HashMap<u16, f64>> {
|
58 |
match estr.parse::<f32>() {
|
59 |
#[allow(clippy::float_cmp)]
|
60 |
Ok(res) => assert_eq!(res, -0.15),
|
91 |
#[test]
|
92 |
#[allow(clippy::float_cmp)]
|
93 |
fn behaves_with_realistic_values() {
|
13 |
#[test]
|
14 |
#[allow(clippy::float_cmp)]
|
15 |
fn convert_u256_to_f64() {
|
26 |
clippy::excessive_precision,
|
27 |
clippy::float_cmp,
|
28 |
clippy::unreadable_literal
|
254 |
#[test]
|
255 |
#[allow(clippy::float_cmp)]
|
256 |
fn converts_to_f64() {
|
257 |
#[test]
|
258 |
#[allow(clippy::float_cmp)]
|
259 |
fn converts_to_f64() {
|
134 |
#[allow(clippy::float_cmp)]
|
135 |
// yeah, I am doing == with floats. That's because I thrive for bit-perfect accuracy
|
163 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
164 |
#[inline]
|
173 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
174 |
#[inline]
|
701 |
/// Get the activation steepness for neuron number `neuron` in layer number `layer`.
|
702 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
703 |
pub fn get_activation_steepness(&self, layer: c_int, neuron: c_int) -> Option<FannType> {
|
83 |
let z = y.0[1];
|
84 |
#[allow(clippy::float_cmp)]
|
85 |
{
|
110 |
let z = *q.get(1);
|
111 |
#[allow(clippy::float_cmp)]
|
112 |
{
|
124 |
fn init_cond(&self) -> Vector<f64> {
|
125 |
#[allow(clippy::float_cmp)]
|
126 |
// It's ok, because startsign is the output of the signum function
|
7 |
#[allow(clippy::float_cmp)]
|
8 |
mod de;
|
10 |
#[allow(clippy::float_cmp)]
|
11 |
mod value;
|
566 |
#[test]
|
567 |
#[allow(clippy::float_cmp)]
|
568 |
fn book_creates_reasonable_search_index() {
|
126 |
#[target_feature(enable = "sse")]
|
127 |
#[allow(dead_code, clippy::float_cmp)]
|
128 |
pub unsafe fn scaled_add(mut u: ArrayViewMut1<f32>, v: ArrayView1<f32>, a: f32) {
|
226 |
#[target_feature(enable = "avx")]
|
227 |
#[allow(clippy::float_cmp)]
|
228 |
pub unsafe fn scaled_add(mut u: ArrayViewMut1<f32>, v: ArrayView1<f32>, a: f32) {
|
318 |
#[allow(clippy::float_cmp)]
|
319 |
fn scaled_add_unvectorized(u: &mut [f32], v: &[f32], a: f32) {
|
9 |
#[test]
|
10 |
#[allow(clippy::float_cmp)]
|
11 |
fn to_f64() -> Result<()> {
|
31 |
// Example how to use FlatBuffers to create and read binary buffers.
|
32 |
#[allow(clippy::float_cmp)]
|
33 |
fn main() {
|
33 |
// }
|
34 |
#[allow(clippy::float_cmp)]
|
35 |
fn main() {
|
89 |
#[allow(clippy::float_cmp)]
|
90 |
impl From<f64> for BitWidth {
|
299 |
// much.
|
300 |
#[allow(clippy::float_cmp)]
|
301 |
let affine_transform = (!transform.is_identity()).then_some(transform);
|
321 |
#[allow(clippy::float_cmp)]
|
322 |
#[test]
|
52 |
);
|
53 |
#[allow(clippy::float_cmp)]
|
54 |
if sum != 1.0 {
|
434 |
#[allow(clippy::float_cmp)]
|
435 |
let equal_cplx = analyzed_f.least_complexity == input.complexity;
|
753 |
#[allow(clippy::float_cmp)]
|
754 |
if max_cplx == 1.0 {
|
380 |
#[test]
|
381 |
#[allow(clippy::float_cmp)]
|
382 |
fn test_geo_transform() {
|
554 |
#[test]
|
555 |
#[allow(clippy::float_cmp)]
|
556 |
fn test_set_no_data_value() {
|
489 |
#[test]
|
490 |
#[allow(clippy::float_cmp)]
|
491 |
pub fn test_area() {
|
46 |
#[test]
|
47 |
#[allow(clippy::float_cmp)]
|
48 |
fn test_intersection_success() {
|
76 |
#[test]
|
77 |
#[allow(clippy::float_cmp)]
|
78 |
fn test_intersection_no_intersects() {
|
280 |
#[test]
|
281 |
#[allow(clippy::float_cmp)]
|
282 |
fn test_get_field_as_x_by_name() {
|
339 |
#[test]
|
340 |
#[allow(clippy::float_cmp)]
|
341 |
fn test_get_field_as_x() {
|
1498 |
#[test]
|
1499 |
#[allow(clippy::float_cmp)]
|
1500 |
fn test_crds_filter_mask() {
|
1433 |
/// Create a bank from explicit arguments and deserialized fields from snapshot
|
1434 |
#[allow(clippy::float_cmp)]
|
1435 |
pub(crate) fn new_from_fields(
|
5912 |
#[test]
|
5913 |
#[allow(clippy::float_cmp)]
|
5914 |
fn test_bank_new() {
|
114 |
#[test]
|
115 |
#[allow(clippy::float_cmp)]
|
116 |
fn test_inflation_basic() {
|
134 |
#[test]
|
135 |
#[allow(clippy::float_cmp)]
|
136 |
fn test_inflation_fixed() {
|
120 |
#[test]
|
121 |
#[allow(clippy::float_cmp)]
|
122 |
fn test_years_as_slots() {
|
12 |
#[cfg(test)]
|
13 |
#[allow(clippy::float_cmp)]
|
14 |
mod tests {
|
186 |
#[allow(clippy::float_cmp)]
|
187 |
fn coordinate_order_descriptor(desc: &str) -> Option<CoordinateOrderDescriptor> {
|
265 |
#[allow(clippy::float_cmp)]
|
266 |
fn combine_descriptors(
|
52 |
// Necessary to update parameters?
|
53 |
#[allow(clippy::float_cmp)]
|
54 |
if c[3] != prev_t {
|
42 |
#[allow(clippy::float_cmp)]
|
43 |
fn bin_main() -> BinResult<()> {
|
2013 |
assert_eq!(v.type_().as_str(), "ad");
|
2014 |
#[allow(clippy::float_cmp)]
|
2015 |
{
|
267 |
#[allow(clippy::float_cmp)]
|
268 |
fn recalculate_glyphs<F, S, P>(
|
271 |
#[cfg(test)]
|
272 |
#[allow(clippy::float_cmp)]
|
273 |
mod tests {
|
365 |
#[allow(clippy::float_cmp)]
|
366 |
#[test]
|
1185 |
#[test]
|
1186 |
#[allow(clippy::float_cmp)]
|
1187 |
fn test_record_average_response_time_per_second() {
|
317 |
/// If yes then Some(ProposalState) is returned and None otherwise
|
318 |
#[allow(clippy::float_cmp)]
|
319 |
pub fn try_get_tipped_vote_state(
|
213 |
#[allow(clippy::float_cmp)]
|
214 |
pub fn set_rate(&mut self, rate: f64) {
|
224 |
#[allow(clippy::float_cmp)]
|
225 |
pub fn set_applied_rate(&mut self, applied_rate: f64) {
|
49 |
// Those strict comparisons are done on purpose.
|
50 |
#[allow(clippy::float_cmp)]
|
51 |
pub fn contains(&self, mut coord: Coord<f64>) -> bool {
|
34 |
#[test]
|
35 |
#[allow(clippy::float_cmp)] // On purpose.
|
36 |
fn lat_lng() {
|
1320 |
clippy::cognitive_complexity,
|
1321 |
clippy::float_cmp,
|
1322 |
clippy::neg_cmp_op_on_partial_ord
|
1335 |
clippy::cognitive_complexity,
|
1336 |
clippy::float_cmp,
|
1337 |
clippy::neg_cmp_op_on_partial_ord
|
513 |
#[allow(clippy::float_cmp)]
|
514 |
#[cfg(test)]
|
36 |
impl<'a, T: 'a + Counter> PickyIterator<T> for Iter<'a, T> {
|
37 |
#[allow(clippy::float_cmp)]
|
38 |
fn pick(&mut self, _: usize, running_total: u64, count_at_index: T) -> Option<PickMetadata> {
|
136 |
#[allow(clippy::float_cmp)]
|
137 |
fn deser_v2<T: Counter, R: Read>(
|
302 |
/// Build a LogWriter and apply any configured headers.
|
303 |
#[allow(clippy::float_cmp)]
|
304 |
pub fn begin_log_with<'a, 'b, W: 'a + io::Write, S: 'b + Serializer>(
|
36 |
impl<'a, T: 'a + Counter> PickyIterator<T> for Iter<'a, T> {
|
37 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
38 |
fn pick(&mut self, _: usize, running_total: u64, count_at_index: T) -> Option<PickMetadata> {
|
95 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
96 |
fn deser_v2<T: Counter, R: Read>(
|
89 |
#[cfg(test)]
|
90 |
#[allow(clippy::float_cmp)]
|
91 |
mod tests {
|
161 |
#[allow(clippy::float_cmp)]
|
162 |
#[allow(clippy::too_many_arguments)]
|
111 |
#[allow(clippy::float_cmp)]
|
112 |
#[test]
|
175 |
#[allow(clippy::float_cmp)]
|
176 |
#[test]
|
282 |
#[test]
|
283 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
284 |
fn test_linear_gradient_encoding() {
|
234 |
#[allow(clippy::float_cmp)] // `max` is either `red`, `green` or `blue`
|
235 |
let hue = 60.
|
250 |
#[test]
|
251 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
252 |
fn test_layout_items() {
|
197 |
#[test]
|
198 |
#[allow(clippy::float_cmp)]
|
199 |
fn test_to_f32() {
|
266 |
#[test]
|
267 |
#[allow(clippy::float_cmp)]
|
268 |
fn test_to_f64() {
|
114 |
#[allow(clippy::float_cmp)]
|
115 |
let h = if rgb.x == lmh.z {
|
8 |
clippy::excessive_precision,
|
9 |
clippy::float_cmp
|
10 |
)]
|
82 |
impl Eq2 for f64 {
|
83 |
#[allow(clippy::float_cmp)]
|
84 |
fn eq2(&self, rhs: &Self) -> bool {
|
676 |
#[allow(clippy::float_cmp)]
|
677 |
#[test]
|
683 |
#[allow(clippy::float_cmp)]
|
684 |
#[test]
|
9 |
#[test]
|
10 |
#[allow(clippy::float_cmp, clippy::approx_constant)]
|
11 |
fn map() {
|
308 |
#[allow(clippy::float_cmp)]
|
309 |
#[test]
|
559 |
Some(best_trade) => {
|
560 |
#[allow(clippy::float_cmp)]
|
561 |
if best_trade.result == trade.result {
|
205 |
#[inline]
|
206 |
#[allow(clippy::float_cmp)]
|
207 |
fn write_cbor<W: Write>(&self, w: &mut W) -> CborResult<()> {
|
226 |
#[inline]
|
227 |
#[allow(clippy::float_cmp)]
|
228 |
fn write_cbor<W: Write>(&self, w: &mut W) -> CborResult<()> {
|
138 |
#[test]
|
139 |
#[allow(clippy::float_cmp)]
|
140 |
fn test_median() {
|
88 |
#[test]
|
89 |
#[allow(clippy::float_cmp)]
|
90 |
fn run_query() -> Result<()> {
|
206 |
#[test]
|
207 |
#[allow(clippy::float_cmp)]
|
208 |
fn add_component_by_entity_id() -> Result<()> {
|
18 |
#[test]
|
19 |
#[allow(clippy::float_cmp)]
|
20 |
fn query_for_entities() -> Result<()> {
|
117 |
#[test]
|
118 |
#[allow(clippy::float_cmp)]
|
119 |
fn delete_entity() -> Result<()> {
|
88 |
#[test]
|
89 |
#[allow(clippy::float_cmp)]
|
90 |
fn run_query() -> Result<()> {
|
204 |
#[test]
|
205 |
#[allow(clippy::float_cmp)]
|
206 |
fn add_component_by_entity_id() -> Result<()> {
|
39 |
#[cfg(test)]
|
40 |
#[allow(clippy::float_cmp)]
|
41 |
mod tests {
|
18 |
#[test]
|
19 |
#[allow(clippy::float_cmp)]
|
20 |
fn query_for_entities() -> Result<()> {
|
117 |
#[test]
|
118 |
#[allow(clippy::float_cmp)]
|
119 |
fn delete_entity() -> Result<()> {
|
34 |
// and https://www.ecma-international.org/ecma-262/#sec-abstract-equality-comparison
|
35 |
#[allow(clippy::float_cmp)]
|
36 |
pub fn is_abstract_equal(a: &Value, b: &Value) -> bool {
|
205 |
#[allow(clippy::float_cmp)]
|
206 |
fn equal_numbers(a: &Number, b: &Number) -> bool {
|
31 |
// and https://www.ecma-international.org/ecma-262/#sec-abstract-equality-comparison
|
32 |
#[allow(clippy::float_cmp)]
|
33 |
pub fn is_abstract_equal(a: &Value, b: &Value) -> bool {
|
202 |
#[allow(clippy::float_cmp)]
|
203 |
fn equal_numbers(a: &Number, b: &Number) -> bool {
|
516 |
#[allow(clippy::float_cmp)]
|
517 |
pub fn multipleOf<'a>(
|
730 |
#[allow(clippy::float_cmp)]
|
731 |
fn single_type(instance: &Value, schema: &Value) -> bool {
|
518 |
#[allow(clippy::float_cmp)]
|
519 |
pub fn multipleOf<'a>(
|
732 |
#[allow(clippy::float_cmp)]
|
733 |
fn single_type(instance: &Value, schema: &Value) -> bool {
|
201 |
/// Currently this is just "set". Later, maybe some type of merge.
|
202 |
#[allow(clippy::float_cmp)]
|
203 |
pub fn apply_config(&mut self, other: &Config) -> TkAction {
|
119 |
#[cfg(test)]
|
120 |
#[allow(clippy::float_cmp)]
|
121 |
mod tests {
|
219 |
#[test]
|
220 |
#[allow(clippy::float_cmp)]
|
221 |
fn test_get_nm_ratio() {
|
779 |
(_, &Value::Boolean(b)) => a.as_boolean() == b,
|
780 |
#[allow(clippy::float_cmp)]
|
781 |
(&Value::Float(a), &Value::Float(b)) => a == b,
|
782 |
#[allow(clippy::float_cmp)]
|
783 |
(&Value::Float(a), _) => a == b.as_float(),
|
784 |
#[allow(clippy::float_cmp)]
|
785 |
(_, &Value::Float(b)) => a.as_float() == b,
|
30 |
pub fn same_as(&self, other: &Value) -> bool {
|
31 |
#[allow(clippy::float_cmp)]
|
32 |
match (&self, &other) {
|
60 |
#[test]
|
61 |
#[allow(clippy::float_cmp)]
|
62 |
fn test() {
|
37 |
/// represents a hard right panning.
|
38 |
#[allow(clippy::float_cmp)]
|
39 |
pub fn panned(self, x: f32) -> Self {
|
58 |
#[test]
|
59 |
#[allow(clippy::float_cmp)]
|
60 |
fn test() {
|
76 |
#[test]
|
77 |
#[allow(clippy::float_cmp)]
|
78 |
fn reports_playback_position() {
|
98 |
#[test]
|
99 |
#[allow(clippy::float_cmp)]
|
100 |
fn pauses_and_resumes_with_fades() {
|
183 |
#[test]
|
184 |
#[allow(clippy::float_cmp)]
|
185 |
fn stops_with_fade_out() {
|
236 |
#[test]
|
237 |
#[allow(clippy::float_cmp)]
|
238 |
fn waits_for_start_time() {
|
454 |
#[test]
|
455 |
#[allow(clippy::float_cmp)]
|
456 |
fn start_position() {
|
108 |
#[test]
|
109 |
#[allow(clippy::float_cmp)]
|
110 |
fn waits_for_samples() {
|
170 |
#[test]
|
171 |
#[allow(clippy::float_cmp)]
|
172 |
fn reports_playback_position() {
|
101 |
#[test]
|
102 |
#[allow(clippy::float_cmp)]
|
103 |
fn waits_for_samples() {
|
154 |
#[test]
|
155 |
#[allow(clippy::float_cmp)]
|
156 |
fn reports_playback_position() {
|
173 |
#[test]
|
174 |
#[allow(clippy::float_cmp)]
|
175 |
fn pauses_and_resumes_with_fades() {
|
253 |
#[test]
|
254 |
#[allow(clippy::float_cmp)]
|
255 |
fn stops_with_fade_out() {
|
304 |
#[test]
|
305 |
#[allow(clippy::float_cmp)]
|
306 |
fn waits_for_start_time() {
|
144 |
|data_a: &TestExternalData, data_b, _, _| {
|
145 |
#[allow(clippy::float_cmp)]
|
146 |
Ok(Bool(data_a.x == data_b.x))
|
152 |
|data_a: &TestExternalData, data_b, _, _| {
|
153 |
#[allow(clippy::float_cmp)]
|
154 |
Ok(Bool(data_a.x != data_b.x))
|
46 |
KdlValue::Float(lhs) => match rhs {
|
47 |
#[allow(clippy::float_cmp)]
|
48 |
KdlValue::Float(rhs) => lhs == rhs,
|
140 |
KdlValue::Float(lhs) => match rhs {
|
141 |
#[allow(clippy::float_cmp)]
|
142 |
KdlValue::Float(rhs) => lhs != rhs,
|
732 |
#[test]
|
733 |
#[allow(clippy::float_cmp)]
|
734 |
fn cubicbez_signed_area_linear() {
|
293 |
#[test]
|
294 |
#[allow(clippy::float_cmp)]
|
295 |
fn distance() {
|
505 |
#[test]
|
506 |
#[allow(clippy::float_cmp)]
|
507 |
fn test_parse_svg_arc_pie() {
|
235 |
#[allow(clippy::float_cmp)]
|
236 |
pub(crate) fn as_bucketable(&self) -> Option<String> {
|
569 |
#[test]
|
570 |
#[allow(clippy::float_cmp)]
|
571 |
fn add_component() {
|
1488 |
#[test]
|
1489 |
#[allow(clippy::float_cmp)]
|
1490 |
fn clone_from_convert() {
|
960 |
#[cfg(feature = "par-schedule")]
|
961 |
#[allow(clippy::float_cmp)]
|
962 |
fn par_comp_readwrite() {
|
51 |
/// Returns true if the request passed the rate limit, false if it failed and should be rejected.
|
52 |
#[allow(clippy::float_cmp)]
|
53 |
pub(super) fn check_rate_limit_full(
|
12 |
#[allow(
|
13 |
clippy::float_cmp,
|
14 |
clippy::excessive_precision,
|
22 |
#[cfg(test)]
|
23 |
#[allow(clippy::float_cmp, clippy::clone_on_copy, clippy::redundant_clone)]
|
24 |
mod test_update_diag;
|
56 |
/// transform is represented as a 4x4 matrix in column-major format
|
57 |
#[allow(clippy::float_cmp)]
|
58 |
pub fn is_homogeneous_transformation(transform: &[f64; 16]) -> bool {
|
326 |
/// Determines whether the given elbow configuration is valid or not.
|
327 |
#[allow(clippy::float_cmp)]
|
328 |
pub fn is_valid_elbow(elbow: &[f64; 2]) -> bool {
|
122 |
impl Encode<RawCborCodec> for f32 {
|
123 |
#[allow(clippy::float_cmp)]
|
124 |
fn encode<W: Write>(&self, _: RawCborCodec, w: &mut W) -> Result<()> {
|
142 |
impl Encode<RawCborCodec> for f64 {
|
143 |
#[allow(clippy::float_cmp)]
|
144 |
fn encode<W: Write>(&self, c: RawCborCodec, w: &mut W) -> Result<()> {
|
37 |
#[cfg(test)]
|
38 |
#[allow(clippy::float_cmp)]
|
39 |
mod tests {
|
123 |
#[test]
|
124 |
#[allow(clippy::float_cmp)]
|
125 |
fn unity() {
|
368 |
#[test]
|
369 |
#[allow(clippy::float_cmp)]
|
370 |
fn spread_arrays_for_fft_one_to_one_resolution() {
|
108 |
#[allow(clippy::float_cmp)]
|
109 |
#[cfg(test)]
|
722 |
#[allow(clippy::float_cmp)]
|
723 |
if key.trunc() != key || key > u32::MAX.into() || key < 1.0 {
|
581 |
#[test]
|
582 |
#[allow(clippy::float_cmp)] // Need to dig into this
|
583 |
fn unit_first() {
|
658 |
#[test]
|
659 |
#[allow(clippy::float_cmp)] // Need to dig into this
|
660 |
fn unit_last() {
|
234 |
#[allow(clippy::float_cmp)]
|
235 |
#[test]
|
9 |
/// Taken from [https://floating-point-gui.de/errors/comparison/](https://floating-point-gui.de/errors/comparison/)
|
10 |
#[allow(clippy::float_cmp)]
|
11 |
pub fn nearly_equal(a: f64, b: f64) -> bool {
|
838 |
#[test]
|
839 |
#[allow(clippy::float_cmp)]
|
840 |
fn m128_reciprocal0() {
|
859 |
#[test]
|
860 |
#[allow(clippy::float_cmp)]
|
861 |
fn m128_reciprocal_sqrt0() {
|
870 |
#[test]
|
871 |
#[allow(clippy::float_cmp)]
|
872 |
fn m128_set() {
|
887 |
#[test]
|
888 |
#[allow(clippy::float_cmp)]
|
889 |
fn m128_set0() {
|
896 |
#[test]
|
897 |
#[allow(clippy::float_cmp)]
|
898 |
fn m128_set_reverse() {
|
739 |
#[test]
|
740 |
#[allow(clippy::float_cmp)]
|
741 |
fn m128d_extract0() {
|
1062 |
#[test]
|
1063 |
#[allow(clippy::float_cmp)]
|
1064 |
fn m128d_store_low() {
|
1071 |
#[test]
|
1072 |
#[allow(clippy::float_cmp)]
|
1073 |
fn m128d_store_high() {
|
1944 |
#[test]
|
1945 |
#[allow(clippy::float_cmp)]
|
1946 |
fn m128_ceil_sse2() {
|
139 |
#[test]
|
140 |
#[allow(clippy::float_cmp)]
|
141 |
fn test_bias_even() {
|
163 |
#[test]
|
164 |
#[allow(clippy::float_cmp)]
|
165 |
fn test_bias_odd() {
|
186 |
let n2 = n2.to_float();
|
187 |
#[allow(clippy::float_cmp)]
|
188 |
if n1.is_finite() && n2.is_finite() {
|
104 |
#[cfg(test)]
|
105 |
#[allow(clippy::float_cmp)]
|
106 |
mod tests {
|
61 |
#[allow(clippy::float_cmp)]
|
62 |
#[cfg(test)]
|
108 |
#[allow(clippy::float_cmp)]
|
109 |
fn try_const_eval_bin_expr(
|
115 |
#[allow(clippy::float_cmp)]
|
116 |
fn const_gather_bin_expr(&self, _span: TokenSpan, _op: BinOp, left_expr: &Expr, right_expr: &Expr) {
|
28 |
} else if let Some(value) = val.as_f64() {
|
29 |
#[allow(clippy::float_cmp)]
|
30 |
ListIndex::Single(if value != -1.0 {
|
8 |
#[allow(clippy::float_cmp)]
|
9 |
#[test]
|
258 |
#[allow(clippy::float_cmp)]
|
259 |
fn update_input(
|
741 |
#[test]
|
742 |
#[allow(clippy::float_cmp)]
|
743 |
fn book_creates_reasonable_search_index() {
|
619 |
#[test]
|
620 |
#[allow(clippy::float_cmp)]
|
621 |
fn book_creates_reasonable_search_index() {
|
282 |
#[allow(clippy::float_cmp)]
|
283 |
for _ in 1..=iterations {
|
353 |
#[allow(clippy::indexing_slicing, clippy::float_cmp)]
|
354 |
for _ in 1..=iterations {
|
83 |
/// Return the given EWMA for a rate like 1, 5, 15 minutes
|
84 |
#[allow(clippy::float_cmp)]
|
85 |
fn rate(&self, rate: f64) -> f64 {
|
249 |
#[cfg(test)]
|
250 |
#[allow(clippy::float_cmp)]
|
251 |
#[allow(clippy::unreadable_literal)]
|
129 |
#[cfg(test)]
|
130 |
#[allow(clippy::float_cmp)]
|
131 |
mod test {
|
1015 |
#[allow(clippy::many_single_char_names, clippy::float_cmp, clippy::identity_op)]
|
1016 |
#[cfg(target_feature = "avx")]
|
352 |
// Updates the slicing depth.
|
353 |
#[allow(clippy::float_cmp)]
|
354 |
if hyperplane_pos != new_hyperplane_pos {
|
533 |
// value "1.0" is also used as a default value.
|
534 |
#[allow(clippy::float_cmp)]
|
535 |
if emissivity == 1.0 {
|
587 |
/// ```
|
588 |
#[allow(clippy::float_cmp)]
|
589 |
fn try_from(value: f32) -> Result<Self, Self::Error> {
|
618 |
#[test]
|
619 |
#[allow(clippy::float_cmp)]
|
620 |
fn book_creates_reasonable_search_index() {
|
294 |
#[allow(clippy::cognitive_complexity)]
|
295 |
#[allow(clippy::float_cmp)]
|
296 |
fn expr_get_value<'a>(interp: &mut Interp, info: &'a mut ExprInfo, prec: i32) -> DatumResult {
|
1454 |
// verifying that we got the number we expected, so this is probably OK.
|
1455 |
#[allow(clippy::float_cmp)]
|
1456 |
fn veq(val1: &Datum, val2: &Datum) -> bool {
|
294 |
#[allow(clippy::cognitive_complexity)]
|
295 |
#[allow(clippy::float_cmp)]
|
296 |
fn expr_get_value<'a>(interp: &mut Interp, info: &'a mut ExprInfo, prec: i32) -> DatumResult {
|
1454 |
// verifying that we got the number we expected, so this is probably OK.
|
1455 |
#[allow(clippy::float_cmp)]
|
1456 |
fn veq(val1: &Datum, val2: &Datum) -> bool {
|
1370 |
#[test]
|
1371 |
#[allow(clippy::float_cmp)]
|
1372 |
fn floating_point() {
|
1296 |
match sample_entry {
|
1297 |
#[allow(clippy::float_cmp)] // The float comparison below is valid and intended.
|
1298 |
super::SampleEntry::Audio(a) => {
|
85 |
#[test]
|
86 |
#[allow(clippy::float_cmp)]
|
87 |
fn ms_macro_2_5h() {
|
146 |
#[test]
|
147 |
#[allow(clippy::float_cmp)]
|
148 |
fn parse_empty_dot() {
|
153 |
#[test]
|
154 |
#[allow(clippy::float_cmp)]
|
155 |
fn parse_num() {
|
160 |
#[test]
|
161 |
#[allow(clippy::float_cmp)]
|
162 |
fn parse_dec_num() {
|
141 |
// code does, so...
|
142 |
#[allow(clippy::float_cmp)]
|
143 |
if u == 1.0 {
|
22 |
#[allow(clippy::float_cmp)]
|
23 |
unsafe {
|
15 |
#[allow(clippy::float_cmp)]
|
16 |
unsafe {
|
555 |
#[test]
|
556 |
#[allow(clippy::float_cmp)]
|
557 |
fn one_norm() {
|
71 |
#[test]
|
72 |
#[allow(clippy::float_cmp)]
|
73 |
fn test_binrange_bin_conversion() {
|
84 |
#[test]
|
85 |
#[allow(clippy::float_cmp)]
|
86 |
fn test_binrange_underflow_conversion() {
|
95 |
#[test]
|
96 |
#[allow(clippy::float_cmp)]
|
97 |
fn test_binrange_overflow_conversion() {
|
9 |
#[test]
|
10 |
#[allow(clippy::float_cmp)]
|
11 |
fn test_histogram_uniform_1d_unweighted_fill_once() {
|
19 |
#[test]
|
20 |
#[allow(clippy::float_cmp)]
|
21 |
fn test_histogram_uniform_1d_unfilled_is_empty() {
|
28 |
#[test]
|
29 |
#[allow(clippy::float_cmp)]
|
30 |
fn test_histogram_uniform_1d_weighted_fill_once() {
|
38 |
#[test]
|
39 |
#[allow(clippy::float_cmp)]
|
40 |
fn test_histogram_uniform_1d_unweighted_fill_bin_edges() {
|
32 |
#[test]
|
33 |
#[allow(clippy::float_cmp)]
|
34 |
fn test_histogram_category_1d_multifill() {
|
6 |
#[test]
|
7 |
#[allow(clippy::float_cmp)]
|
8 |
fn test_histogram_uniform_2d_unweighted_fill_once() {
|
16 |
#[test]
|
17 |
#[allow(clippy::float_cmp)]
|
18 |
fn test_histogram_uniform_2d_unfilled_is_empty() {
|
78 |
let v = val.value(self.cx);
|
79 |
#[allow(clippy::float_cmp)]
|
80 |
if v.trunc() == v {
|
176 |
#[allow(clippy::float_cmp)]
|
177 |
fn get_or_create_material(
|
208 |
#[allow(clippy::float_cmp)] // The equality will be true if we don't touch at all at self.delta_[xy]
|
209 |
if old_dx != self.delta_x || old_dy != self.delta_y {
|
696 |
#[allow(clippy::float_cmp)]
|
697 |
{
|
7 |
#[test]
|
8 |
#[allow(clippy::float_cmp)]
|
9 |
fn transform() {
|
237 |
#[test]
|
238 |
#[allow(clippy::float_cmp)]
|
239 |
fn guidelines() {
|
398 |
#[test]
|
399 |
#[allow(clippy::float_cmp)]
|
400 |
fn save() {
|
602 |
#[test]
|
603 |
#[allow(clippy::float_cmp)]
|
604 |
fn load_layer() {
|
672 |
#[test]
|
673 |
#[allow(clippy::float_cmp)]
|
674 |
fn set_glyph() {
|
818 |
#[test]
|
819 |
#[allow(clippy::float_cmp)]
|
820 |
fn real_to_float() {
|
37 |
#[allow(clippy::unreadable_literal)]
|
38 |
#[allow(clippy::float_cmp)]
|
39 |
fn compute_sum_of_individual_row() -> Result<(), String> {
|
58 |
#[allow(clippy::unreadable_literal)]
|
59 |
#[allow(clippy::float_cmp)]
|
60 |
fn compute_sum_of_table() -> Result<(), String> {
|
372 |
#[test]
|
373 |
#[allow(clippy::float_cmp)]
|
374 |
fn test_convert_f32() {
|
470 |
#[test]
|
471 |
#[allow(clippy::float_cmp)]
|
472 |
fn test_convert_f64() {
|
604 |
#[test]
|
605 |
#[allow(clippy::float_cmp)]
|
606 |
fn test_convert_f32() {
|
685 |
#[test]
|
686 |
#[allow(clippy::float_cmp)]
|
687 |
fn test_convert_f64() {
|
1685 |
#[test]
|
1686 |
#[allow(clippy::float_cmp)]
|
1687 |
fn test_l1_norm() {
|
1732 |
// FIXME #7158: (maybe?) currently failing on x86.
|
1733 |
#[allow(clippy::float_cmp)]
|
1734 |
fn test_norm() {
|
2877 |
#[test]
|
2878 |
#[allow(clippy::float_cmp)]
|
2879 |
fn test_const() {
|
35 |
#[allow(clippy::float_cmp)]
|
36 |
fn sample(&self, interval: f32, mut out: &mut [T::Frame]) {
|
109 |
#[allow(clippy::float_cmp)]
|
110 |
fn sample(&self, interval: f32, out: &mut [T::Frame]) {
|
89 |
#[allow(clippy::float_cmp)]
|
90 |
fn is_finished(&self) -> bool {
|
597 |
#[cfg(test)]
|
598 |
#[allow(clippy::unreadable_literal, clippy::float_cmp)]
|
599 |
mod tests {
|
173 |
#[test]
|
174 |
#[allow(clippy::float_cmp)]
|
175 |
fn color() {
|
70 |
#[test]
|
71 |
#[allow(clippy::float_cmp)]
|
72 |
fn position() {
|
14 |
#[cfg(test)]
|
15 |
#[allow(clippy::float_cmp)]
|
16 |
pub fn are_close(a: f64, b: f64, eps: f64) -> bool {
|
36 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp, eq_op))]
|
37 |
impl OrdSubset for f64 {
|
45 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp, eq_op))]
|
46 |
impl OrdSubset for f32 {
|
2277 |
#[allow(
|
2278 |
clippy::float_cmp,
|
2279 |
clippy::cast_possible_truncation,
|
82 |
// would be very unusual for them to actually fail to compare.
|
83 |
#[allow(clippy::float_cmp)]
|
84 |
{
|
150 |
// would be very unusual for them to actually fail to compare.
|
151 |
#[allow(clippy::float_cmp)]
|
152 |
{
|
399 |
impl Matches<f64> for f64 {
|
400 |
#[allow(clippy::float_cmp)]
|
401 |
#[instrument(level = "trace")]
|
576 |
clippy::cast_sign_loss,
|
577 |
clippy::float_cmp
|
578 |
)]
|
601 |
clippy::cast_possible_truncation,
|
602 |
clippy::float_cmp
|
603 |
)]
|
468 |
fn close(a: f64, b: f64) -> bool {
|
469 |
#[allow(clippy::float_cmp)]
|
470 |
if a == b {
|
542 |
#[allow(clippy::float_cmp)] // TODO
|
543 |
pub fn serialize_ops(mut ops: &[Op]) -> Result<Vec<u8>> {
|
164 |
}
|
165 |
#[allow(clippy::float_cmp)] // TODO
|
166 |
fn set(&mut self, cid: usize, width: f32) {
|
38 |
// read keys and lists
|
39 |
#[allow(clippy::float_cmp)]
|
40 |
{
|
87 |
#[cfg(test)]
|
88 |
#[allow(clippy::float_cmp)]
|
89 |
mod tests {
|
11 |
#[test]
|
12 |
#[allow(clippy::float_cmp)]
|
13 |
#[ignore]
|
609 |
#[cfg(test)]
|
610 |
#[allow(clippy::float_cmp)]
|
611 |
mod tests {
|
562 |
#[cfg(test)]
|
563 |
#[allow(clippy::float_cmp)]
|
564 |
mod tests {
|
609 |
#[test]
|
610 |
#[allow(clippy::float_cmp)]
|
611 |
fn hit_test_empty_string() {
|
764 |
// this used to be part of the TextLayout trait; see https://github.com/linebender/piet/issues/298
|
765 |
#[allow(clippy::float_cmp)]
|
766 |
fn update_width(&mut self, new_width: impl Into<Option<f64>>) {
|
1028 |
#[cfg(test)]
|
1029 |
#[allow(clippy::float_cmp)]
|
1030 |
mod tests {
|
572 |
#[test]
|
573 |
#[allow(clippy::float_cmp)]
|
574 |
fn hit_test_empty_string() {
|
517 |
// allow clippy warning for `width != 1.0` in if statement
|
518 |
#[allow(clippy::float_cmp)]
|
519 |
fn apply_to(&self, node: &mut impl Node) {
|
388 |
#[allow(clippy::float_cmp)]
|
389 |
impl<'a> CreateTexture<TextureContext<'a>> for Texture {
|
40 |
#[allow(clippy::float_cmp)]
|
41 |
pub(crate) fn collect(&mut self) -> Vec<Vec<ShapeSplitterPoint>> {
|
92 |
#[allow(clippy::many_single_char_names, clippy::float_cmp)]
|
93 |
fn intersects(
|
138 |
#[inline(always)]
|
139 |
#[allow(clippy::float_cmp)]
|
140 |
fn append_point(container: &mut Vec<ShapeSplitterPoint>, point: ShapeSplitterPoint) {
|
349 |
/// Gets whether the value can be exactly converted in round-trip.
|
350 |
#[allow(clippy::float_cmp)] // Stupid tool, the exact float compare is _the entire point_.
|
351 |
pub fn exact(value: f32) -> bool {
|
325 |
/// Gets whether the value can be exactly converted in round-trip.
|
326 |
#[allow(clippy::float_cmp)] // Stupid tool, the exact float compare is _the entire point_.
|
327 |
pub fn exact(value: f32) -> bool {
|
541 |
#[cfg(test)]
|
542 |
#[allow(clippy::float_cmp)]
|
543 |
mod tests {
|
657 |
#[test]
|
658 |
#[allow(clippy::float_cmp)]
|
659 |
fn test_numbers() {
|
73 |
#[test]
|
74 |
#[allow(clippy::float_cmp)]
|
75 |
#[cfg_attr(miri, ignore)]
|
430 |
impl OptimizationRule for SimplifyExprRule {
|
431 |
#[allow(clippy::float_cmp)]
|
432 |
fn optimize_expr(
|
75 |
#[test]
|
76 |
#[allow(clippy::float_cmp)]
|
77 |
fn l_2_norm() {
|
83 |
#[test]
|
84 |
#[allow(clippy::float_cmp)]
|
85 |
fn l_infinity_norm() {
|
769 |
#[allow(clippy::float_cmp)]
|
770 |
#[test]
|
253 |
impl Ord for Portion {
|
254 |
#[allow(clippy::float_cmp)]
|
255 |
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
544 |
impl Ord for SPortion {
|
545 |
#[allow(clippy::float_cmp)]
|
546 |
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
253 |
impl Ord for Portion {
|
254 |
#[allow(clippy::float_cmp)]
|
255 |
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
544 |
impl Ord for SPortion {
|
545 |
#[allow(clippy::float_cmp)]
|
546 |
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
41 |
#[test]
|
42 |
#[allow(clippy::float_cmp)]
|
43 |
fn float4() {
|
49 |
#[test]
|
50 |
#[allow(clippy::float_cmp)]
|
51 |
fn float8() {
|
384 |
/// Writes an [`Kind::Float`] atom with the given value.
|
385 |
#[allow(clippy::cast_possible_truncation, clippy::float_cmp)]
|
386 |
pub fn write_f32<W: WriteBytesExt>(writer: &mut W, value: f32) -> std::io::Result<usize> {
|
414 |
/// Writes an [`Kind::Float`] atom with the given value.
|
415 |
#[allow(clippy::cast_possible_truncation, clippy::float_cmp)]
|
416 |
pub fn write_f64<W: WriteBytesExt>(writer: &mut W, value: f64) -> std::io::Result<usize> {
|
1051 |
/// Returns this number as an f32, if it can be done without losing precision.
|
1052 |
#[allow(clippy::float_cmp, clippy::cast_possible_truncation)]
|
1053 |
pub fn as_f32(&self) -> Result<f32, Error> {
|
13 |
#[test]
|
14 |
#[allow(clippy::float_cmp)]
|
15 |
fn convert_u256_to_f64() {
|
21 |
#[test]
|
22 |
#[allow(clippy::excessive_precision, clippy::float_cmp, clippy::unreadable_literal)]
|
23 |
#[cfg(feature = "std")]
|
655 |
// floating point comparison
|
656 |
#[allow(clippy::float_cmp)]
|
657 |
let area = if west != -1000.0 && south != -1000.0 && east != -1000.0 && north != -1000.0
|
834 |
#[allow(clippy::float_cmp, clippy::cast_precision_loss)]
|
835 |
#[test]
|
1002 |
#[allow(clippy::float_cmp)]
|
1003 |
#[test]
|
453 |
#[allow(clippy::float_cmp, clippy::cast_precision_loss)]
|
454 |
#[test]
|
620 |
#[allow(clippy::float_cmp)]
|
621 |
#[test]
|
50 |
#[test]
|
51 |
#[allow(clippy::float_cmp)]
|
52 |
fn test_expression_solver() {
|
80 |
#[test]
|
81 |
#[allow(clippy::float_cmp)]
|
82 |
fn test_expression_solver_with_functions() {
|
108 |
#[test]
|
109 |
#[allow(clippy::float_cmp)]
|
110 |
fn test_expression_solver_with_symbol_substitution() {
|
60 |
/// [go-color]: https://github.com/bthomson/go-color
|
61 |
#[allow(clippy::float_cmp, clippy::many_single_char_names)]
|
62 |
pub fn from_rgb(rgb: &[u8]) -> HslFloats {
|
603 |
#[test]
|
604 |
#[allow(clippy::float_cmp)]
|
605 |
fn test_var_f64_le() {
|
213 |
#[test]
|
214 |
#[allow(clippy::float_cmp)]
|
215 |
fn sample_standard_array_3() {
|
57 |
fn test_float() {
|
58 |
#[allow(clippy::float_cmp)]
|
59 |
with_graph(|graph| {
|
264 |
let (_, feedback) = env.step((), &0, &mut rng, &mut ());
|
265 |
#[allow(clippy::float_cmp)] // Expecting exact values without error
|
266 |
if feedback < Reward(0.5) {
|
296 |
#[test]
|
297 |
#[allow(clippy::float_cmp)] // Expecting exact values without error
|
298 |
fn rewards() {
|
619 |
#[cfg(test)]
|
620 |
#[allow(clippy::float_cmp)] // Comparing exact reward values; 0.0 or 1.0 without error
|
621 |
mod meta_env_bandits {
|
59 |
/// Test that the [`EnvStructure`] of an [`EnvDistribution`] is a superset of its sampled envs.
|
60 |
#[allow(clippy::float_cmp)] // discount factor should be exactly equal
|
61 |
pub fn check_env_distribution_structure<D>(env_dist: &D, num_samples: usize)
|
282 |
#[test]
|
283 |
#[allow(clippy::float_cmp)] // expecting exact values
|
284 |
fn step_limit() {
|
106 |
/// Check that any excess output passed to [`FeatureSpace::features_out`] remains unchanged.
|
107 |
#[allow(clippy::float_cmp)] // expecting exact values
|
108 |
pub fn check_features_out_excess_unchanged<S: FeatureSpace>(space: &S, element: &S::Element) {
|
354 |
#[allow(clippy::float_cmp)] // Should be exact
|
355 |
if gain != 1.0 {
|
370 |
#[test]
|
371 |
#[allow(clippy::float_cmp)]
|
372 |
fn slice_f64() {
|
48 |
#[cfg(test)]
|
49 |
#[allow(clippy::float_cmp)]
|
50 |
mod expect_ord {
|
17 |
// ported https://github.com/RandyGaul/cute_headers/blob/master/cute_c2.h#L1427
|
18 |
#[allow(clippy::float_cmp)]
|
19 |
pub fn contact_ray_aabb(ray: &Ray, aabb_pos: Vec2, aabb_half_exts: Vec2) -> Option<Raycast> {
|
636 |
#[allow(clippy::float_cmp)]
|
637 |
fn visit_f64<E: Error>(self, v: f64) -> Result<Self::Value, E> {
|
1016 |
#[test]
|
1017 |
#[allow(clippy::float_cmp)] // Not doing math. Constant bytes are passed through unmodified.
|
1018 |
fn f32() {
|
1038 |
#[test]
|
1039 |
#[allow(clippy::float_cmp)] // Not doing math. Constant bytes are passed through unmodified.
|
1040 |
fn f64() {
|
250 |
// Instead, this code checks if a f64 fits inside an f32.
|
251 |
#[allow(clippy::float_cmp)]
|
252 |
fn any_float(f: f64) -> Result<AnyNum> {
|
14 |
#[test]
|
15 |
#[allow(clippy::float_cmp)]
|
16 |
fn roundtrip_value_float_into() {
|
30 |
#[test]
|
31 |
#[allow(clippy::float_cmp)]
|
32 |
fn pose_to_iso() {
|
39 |
#[test]
|
40 |
#[allow(clippy::float_cmp)]
|
41 |
fn pose_into_iso2() {
|
48 |
#[test]
|
49 |
#[allow(clippy::float_cmp)]
|
50 |
fn odometry_into_iso2() {
|
57 |
#[test]
|
58 |
#[allow(clippy::float_cmp)]
|
59 |
fn imu_into_iso() {
|
69 |
#[test]
|
70 |
#[allow(clippy::float_cmp)]
|
71 |
fn test_from() {
|
33 |
#[test]
|
34 |
#[allow(clippy::float_cmp)]
|
35 |
fn pose_to_iso() {
|
42 |
#[test]
|
43 |
#[allow(clippy::float_cmp)]
|
44 |
fn pose_into_iso2() {
|
51 |
#[test]
|
52 |
#[allow(clippy::float_cmp)]
|
53 |
fn test_from() {
|
33 |
#[test]
|
34 |
#[allow(clippy::float_cmp)]
|
35 |
fn pose_to_iso() {
|
42 |
#[test]
|
43 |
#[allow(clippy::float_cmp)]
|
44 |
fn pose_into_iso2() {
|
149 |
/// Guarantee: we always find the closest intersection in the current kd-cell, if any.
|
150 |
#[allow(clippy::float_cmp)]
|
151 |
fn intersect_subtree(
|
222 |
let int = value as i32;
|
223 |
#[allow(clippy::float_cmp)]
|
224 |
// This is safe and fast in that case
|
73 |
#[cfg(test)]
|
74 |
#[allow(clippy::float_cmp)] // Consts are used only!
|
75 |
mod tests {
|
9 |
#[test]
|
10 |
#[allow(clippy::float_cmp)]
|
11 |
fn types1() -> Result<(), String> {
|
203 |
#[test]
|
204 |
#[allow(clippy::float_cmp)]
|
205 |
fn types3() -> Result<(), String> {
|
370 |
#[cfg(test)]
|
371 |
#[allow(clippy::float_cmp)]
|
372 |
mod tests {
|
502 |
#[cfg(test)]
|
503 |
#[allow(clippy::float_cmp)]
|
504 |
mod tests {
|
345 |
#[cfg(test)]
|
346 |
#[allow(clippy::float_cmp)]
|
347 |
mod tests {
|
398 |
#[cfg(test)]
|
399 |
#[allow(clippy::float_cmp)]
|
400 |
mod tests {
|
147 |
#[cfg(test)]
|
148 |
#[allow(clippy::float_cmp)]
|
149 |
mod tests {
|
270 |
#[cfg(test)]
|
271 |
#[allow(clippy::float_cmp)]
|
272 |
mod tests {
|
121 |
(IrValue::Float(a), IrValue::Float(b)) => {
|
122 |
#[allow(clippy::float_cmp)]
|
123 |
match ir.op {
|
358 |
// nextafter algorithm based off of https://gitlab.com/bronsonbdevost/next_afterf
|
359 |
#[allow(clippy::float_cmp)]
|
360 |
pub fn nextafter(x: f64, y: f64) -> f64 {
|
438 |
let z = y.round();
|
439 |
#[allow(clippy::float_cmp)]
|
440 |
let z = if (y - z).abs() == 0.5 {
|
59 |
#[allow(clippy::float_cmp)]
|
60 |
fn math_isclose(args: IsCloseArgs, vm: &VirtualMachine) -> PyResult<bool> {
|
117 |
#[pymethod(name = "__enter__")]
|
118 |
#[allow(clippy::float_cmp, clippy::match_bool)]
|
119 |
fn acquire(&self, args: AcquireArgs, vm: &VirtualMachine) -> PyResult<bool> {
|
178 |
#[pymethod(name = "__enter__")]
|
179 |
#[allow(clippy::float_cmp, clippy::match_bool)]
|
180 |
fn acquire(&self, args: AcquireArgs, vm: &VirtualMachine) -> PyResult<bool> {
|
466 |
}
|
467 |
#[allow(clippy::float_cmp)]
|
468 |
if text.font_size != bevy_text_component.sections[0].style.font_size {
|
59 |
#[test]
|
60 |
#[allow(clippy::float_cmp)]
|
61 |
fn handle_scope_numbers() {
|
237 |
#[test]
|
238 |
#[allow(clippy::float_cmp)]
|
239 |
fn escapable_handle_scope() {
|
4258 |
#[allow(clippy::float_cmp)]
|
4259 |
#[test]
|
52 |
#[test]
|
53 |
#[allow(clippy::float_cmp)]
|
54 |
fn handle_scope_numbers() {
|
176 |
#[test]
|
177 |
#[allow(clippy::float_cmp)]
|
178 |
fn escapable_handle_scope() {
|
53 |
#[test]
|
54 |
#[allow(clippy::float_cmp)]
|
55 |
fn handle_scope_numbers() {
|
185 |
#[test]
|
186 |
#[allow(clippy::float_cmp)]
|
187 |
fn escapable_handle_scope() {
|
87 |
#[allow(clippy::float_cmp)]
|
88 |
#[test]
|
236 |
// I don't know of a better way to check this.
|
237 |
#[allow(clippy::float_cmp)]
|
238 |
fn f64_is_integer(x: f64) -> bool {
|
2126 |
/// Create a bank from explicit arguments and deserialized fields from snapshot
|
2127 |
#[allow(clippy::float_cmp)]
|
2128 |
pub(crate) fn new_from_fields(
|
8287 |
#[test]
|
8288 |
#[allow(clippy::float_cmp)]
|
8289 |
fn test_bank_new() {
|
114 |
#[test]
|
115 |
#[allow(clippy::float_cmp)]
|
116 |
fn test_inflation_basic() {
|
134 |
#[test]
|
135 |
#[allow(clippy::float_cmp)]
|
136 |
fn test_inflation_fixed() {
|
129 |
#[test]
|
130 |
#[allow(clippy::float_cmp)]
|
131 |
fn test_years_as_slots() {
|
326 |
#[cfg(test)]
|
327 |
#[allow(clippy::float_cmp)]
|
328 |
mod tests {
|
166 |
#[cfg(test)]
|
167 |
#[allow(clippy::float_cmp)]
|
168 |
mod tests {
|
242 |
#[allow(clippy::float_cmp)] // cmp just used to recognize change
|
243 |
fn run(&mut self, (dimensions, mut cameras, mut ortho_cameras): Self::SystemData) {
|
135 |
#[test]
|
136 |
#[allow(clippy::float_cmp)]
|
137 |
fn string_and_float() {
|
146 |
#[test]
|
147 |
#[allow(clippy::float_cmp)]
|
148 |
fn generic() {
|
985 |
options.set_sample_rate(sample_rate)?;
|
986 |
#[allow(clippy::float_cmp)]
|
987 |
{
|
310 |
#[inline]
|
311 |
#[allow(clippy::float_cmp)]
|
312 |
fn serialize_f32(self, value: f32) -> Result<()> {
|
333 |
#[inline]
|
334 |
#[allow(clippy::float_cmp)]
|
335 |
fn serialize_f64(self, value: f64) -> Result<()> {
|
310 |
#[inline]
|
311 |
#[allow(clippy::float_cmp)]
|
312 |
fn serialize_f32(self, value: f32) -> Result<()> {
|
333 |
#[inline]
|
334 |
#[allow(clippy::float_cmp)]
|
335 |
fn serialize_f64(self, value: f64) -> Result<()> {
|
222 |
#[cfg(test)]
|
223 |
#[allow(clippy::float_cmp)]
|
224 |
mod tests {
|
437 |
#[test]
|
438 |
#[allow(clippy::float_cmp)]
|
439 |
fn test_parse_header_good() -> Result<()> {
|
417 |
#[test]
|
418 |
#[allow(clippy::float_cmp)]
|
419 |
fn test_parse_str_from_bytes() {
|
468 |
#[test]
|
469 |
#[allow(clippy::float_cmp)]
|
470 |
fn test_parse_str_from_bytes() {
|
160 |
#[test]
|
161 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
162 |
fn test_linear_gradient_encoding() {
|
234 |
#[allow(clippy::float_cmp)] // `max` is either `red`, `green` or `blue`
|
235 |
let hue = 60.
|
204 |
#[test]
|
205 |
#[allow(clippy::float_cmp)] // We want bit-wise equality here
|
206 |
fn test_layout_items() {
|
314 |
#[allow(clippy::float_cmp)]
|
315 |
pub fn is_opaque(&self) -> bool {
|
383 |
#[test]
|
384 |
#[allow(clippy::float_cmp)]
|
385 |
pub fn color4f_array_access() {
|
167 |
#[test]
|
168 |
#[allow(clippy::float_cmp)]
|
169 |
fn access_coordinates() {
|
836 |
#[test]
|
837 |
#[allow(clippy::float_cmp)]
|
838 |
fn test_tuple_to_vector() {
|
51 |
#[test]
|
52 |
#[allow(clippy::float_cmp)]
|
53 |
fn test_transmutation_of_fixed_size_arrays_to_slice() {
|
71 |
impl Evaluable for proto::Equal {
|
72 |
#[allow(clippy::float_cmp)]
|
73 |
fn evaluate(&self, _privacy_definition: &Option<proto::PrivacyDefinition>, mut arguments: NodeArguments) -> Result<ReleaseNode> {
|
201 |
impl Component for proto::Divide {
|
202 |
#[allow(clippy::float_cmp)]
|
203 |
fn propagate_property(
|
509 |
/// Utility function for building component expansions for dp mechanisms
|
510 |
#[allow(clippy::float_cmp)]
|
511 |
pub fn expand_mechanism(
|
727 |
#[test]
|
728 |
#[allow(clippy::float_cmp)]
|
729 |
#[cfg(feature = "std")]
|
132 |
/// the number of lamports unlocked at this event
|
133 |
#[allow(clippy::float_cmp)]
|
134 |
pub fn amount(&self, total: u64) -> u64 {
|
147 |
#[test]
|
148 |
#[allow(clippy::float_cmp)]
|
149 |
fn test_make_lockups() {
|
1549 |
#[test]
|
1550 |
#[allow(clippy::float_cmp)]
|
1551 |
fn test_crds_filter_mask() {
|
1857 |
/// Create a bank from explicit arguments and deserialized fields from snapshot
|
1858 |
#[allow(clippy::float_cmp)]
|
1859 |
pub(crate) fn new_from_fields(
|
8059 |
#[test]
|
8060 |
#[allow(clippy::float_cmp)]
|
8061 |
fn test_bank_new() {
|
114 |
#[test]
|
115 |
#[allow(clippy::float_cmp)]
|
116 |
fn test_inflation_basic() {
|
134 |
#[test]
|
135 |
#[allow(clippy::float_cmp)]
|
136 |
fn test_inflation_fixed() {
|
129 |
#[test]
|
130 |
#[allow(clippy::float_cmp)]
|
131 |
fn test_years_as_slots() {
|
82 |
#[cfg(test)]
|
83 |
#[allow(clippy::float_cmp)]
|
84 |
mod test {
|
157 |
impl Encode<DagCborCodec> for f32 {
|
158 |
#[allow(clippy::float_cmp)]
|
159 |
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String> {
|
179 |
impl Encode<DagCborCodec> for f64 {
|
180 |
#[allow(clippy::float_cmp)]
|
181 |
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String> {
|
82 |
impl PartialOrd for OrderableF32 {
|
83 |
#[allow(clippy::float_cmp)]
|
84 |
#[inline(always)]
|
424 |
/// the result is `0`.
|
425 |
#[allow(clippy::float_cmp)]
|
426 |
pub fn freq_to_tone_period(clock_hz: f32, hz: f32) -> Option<NonZeroU16> {
|
1217 |
#[allow(clippy::float_cmp)]
|
1218 |
fn test_extract_dt(negate: bool, day: u32, hour: u32, min: u32, sec: u32, usec: u32) {
|
1292 |
#[allow(clippy::float_cmp)]
|
1293 |
fn test_extract(year: i32, month: u32, day: u32, hour: u32, min: u32, sec: u32) {
|
757 |
#[allow(clippy::float_cmp)]
|
758 |
fn test_extract(hour: u32, min: u32, sec: u32, usec: u32) {
|
1689 |
#[allow(clippy::float_cmp)]
|
1690 |
fn test_extract(year: i32, month: u32, day: u32, hour: u32, min: u32, sec: u32, usec: u32) {
|
24 |
// poor-man's ceil, because f64::ceil() isn't available on no_std
|
25 |
#[allow(clippy::float_cmp)]
|
26 |
fn ceil(x: f64) -> usize {
|
356 |
#[allow(clippy::float_cmp)] // imprecision should be consistent
|
357 |
fn axis(
|
391 |
#[allow(clippy::float_cmp)] // imprecision should be consistent
|
392 |
fn pressure(
|
55 |
/// Implementation of f32.nearest
|
56 |
#[allow(clippy::float_arithmetic, clippy::float_cmp)]
|
57 |
pub extern "C" fn wasmtime_f32_nearest(x: f32) -> f32 {
|
96 |
/// Implementation of f64.nearest
|
97 |
#[allow(clippy::float_arithmetic, clippy::float_cmp)]
|
98 |
pub extern "C" fn wasmtime_f64_nearest(x: f64) -> f64 {
|
337 |
inner: &EasingFn(|t| {
|
338 |
#[allow(clippy::float_cmp)]
|
339 |
if t == 1.0 {
|
356 |
inner: &EasingFn(|t| {
|
357 |
#[allow(clippy::float_cmp)]
|
358 |
if t == 0.0 {
|
321 |
assert!(result.1 + SOME_VEC.1 <= f32::EPSILON);
|
322 |
#[allow(clippy::float_cmp)]
|
323 |
{
|
167 |
fn floats() {
|
168 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
169 |
fn test_float(s: &str, value: f64, suffix: &str) {
|
167 |
fn floats() {
|
168 |
#[cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
169 |
fn test_float(s: &str, value: f64, suffix: &str) {
|
73 |
#[test]
|
74 |
#[allow(clippy::float_cmp)]
|
75 |
fn test_max_precision() {
|
87 |
#[test]
|
88 |
#[allow(clippy::float_cmp)]
|
89 |
fn quota_test() {
|
464 |
#[allow(clippy::while_immutable_condition)]
|
465 |
#[allow(clippy::float_cmp)]
|
466 |
fn build_input_stream_raw<D, E>(
|
518 |
#[test]
|
519 |
#[allow(clippy::float_cmp)]
|
520 |
fn parses_ord_token_stream() {
|
570 |
#[test]
|
571 |
#[allow(clippy::float_cmp)]
|
572 |
fn parses_almost_equal_token_stream() {
|
699 |
#[test]
|
700 |
#[allow(clippy::float_cmp)]
|
701 |
fn parses_grouping() {
|
13 |
#[test]
|
14 |
#[allow(clippy::float_cmp)]
|
15 |
fn convert_u256_to_f64() {
|
21 |
#[test]
|
22 |
#[allow(clippy::excessive_precision, clippy::float_cmp, clippy::unreadable_literal)]
|
23 |
#[cfg(feature = "std")]
|
365 |
#[allow(clippy::float_cmp)]
|
366 |
{
|
141 |
#[allow(clippy::float_cmp)]
|
142 |
#[test]
|
181 |
#[allow(clippy::float_cmp)]
|
182 |
#[test]
|
178 |
#[allow(clippy::float_cmp)]
|
179 |
#[test]
|
571 |
#[allow(clippy::float_cmp)]
|
572 |
#[test]
|
635 |
#[allow(clippy::float_cmp)]
|
636 |
#[test]
|
71 |
#[allow(clippy::float_cmp)]
|
72 |
#[test]
|
98 |
#[allow(clippy::float_cmp)]
|
99 |
#[test]
|
608 |
#[allow(clippy::float_cmp)]
|
609 |
#[test]
|
51 |
#[test]
|
52 |
#[allow(clippy::float_cmp)]
|
53 |
fn test_parse_header() {
|
272 |
#[test]
|
273 |
#[allow(clippy::float_cmp)]
|
274 |
fn tiebreaker() {
|
216 |
#[test]
|
217 |
#[allow(clippy::float_cmp)]
|
218 |
fn initial_state_is_correct() {
|
328 |
#[test]
|
329 |
#[allow(clippy::float_cmp)]
|
330 |
fn initial_state_is_correct() {
|
218 |
#[cfg(test)]
|
219 |
#[allow(clippy::float_cmp)]
|
220 |
mod tests {
|
208 |
#[cfg(test)]
|
209 |
#[allow(clippy::float_cmp)]
|
210 |
mod tests {
|
125 |
self.vec = Some((Unit::new_unchecked(old.xyz()), old.w));
|
126 |
#[allow(clippy::float_cmp)]
|
127 |
(rot.w != 1.0).then(|| UnitQuaternion::new_unchecked(rot))
|
172 |
self.vec = Some((Unit::new_unchecked(old.xyz()), old.w));
|
173 |
#[allow(clippy::float_cmp)]
|
174 |
(rot.w != 1.0).then(|| UnitQuaternion::new_unchecked(rot))
|
106 |
#[allow(clippy::float_cmp)]
|
107 |
fn trans_numeric(enc: &mut Encoder, ty: &Type, tag: u32, s: &[u8]) -> Result<()> {
|
106 |
#[allow(clippy::float_cmp)]
|
107 |
fn trans_numeric(enc: &mut Encoder, ty: &Type, tag: u32, s: &[u8]) -> Result<()> {
|
483 |
#[test]
|
484 |
#[allow(clippy::float_cmp)]
|
485 |
fn lexer_long_float() -> Result<()> {
|
103 |
#[rstest]
|
104 |
#[allow(clippy::float_cmp)]
|
105 |
fn ping_output_parsing_successful(ping_output: &str) {
|
163 |
#[test]
|
164 |
#[allow(clippy::float_cmp)]
|
165 |
fn smoke_test() {
|
85 |
#[test]
|
86 |
#[allow(clippy::float_cmp)]
|
87 |
fn handle_scope_numbers() {
|
331 |
#[test]
|
332 |
#[allow(clippy::float_cmp)]
|
333 |
fn escapable_handle_scope() {
|
5978 |
#[allow(clippy::float_cmp)]
|
5979 |
#[test]
|
244 |
// Decay is a power of two so these values are exact
|
245 |
#[allow(clippy::float_cmp)]
|
246 |
{
|
273 |
// Decay is a power of two so these values are exact
|
274 |
#[allow(clippy::float_cmp)]
|
275 |
{
|
381 |
impl HMM {
|
382 |
#[allow(clippy::float_cmp)]
|
383 |
fn new(depth_norm_factor: f64, min_bayes_factor: f64, purity: f64) -> Self {
|
357 |
#[test]
|
358 |
#[allow(clippy::float_cmp)]
|
359 |
fn test_likelihood_pileup() {
|
386 |
#[test]
|
387 |
#[allow(clippy::float_cmp)] //clippy moans, but it's wrong (again!)
|
388 |
#[allow(non_snake_case)]
|
319 |
}
|
320 |
#[allow(clippy::float_cmp)]
|
321 |
if text_actor.font_size != text.sections[0].style.font_size {
|
108 |
clippy::many_single_char_names,
|
109 |
clippy::float_cmp
|
110 |
)]
|
1922 |
/// Create a bank from explicit arguments and deserialized fields from snapshot
|
1923 |
#[allow(clippy::float_cmp)]
|
1924 |
pub(crate) fn new_from_fields(
|
8257 |
#[test]
|
8258 |
#[allow(clippy::float_cmp)]
|
8259 |
fn test_bank_new() {
|
114 |
#[test]
|
115 |
#[allow(clippy::float_cmp)]
|
116 |
fn test_inflation_basic() {
|
134 |
#[test]
|
135 |
#[allow(clippy::float_cmp)]
|
136 |
fn test_inflation_fixed() {
|
129 |
#[test]
|
130 |
#[allow(clippy::float_cmp)]
|
131 |
fn test_years_as_slots() {
|
447 |
use ast::InsnKind::*;
|
448 |
#[allow(clippy::float_cmp)]
|
449 |
match &self.kind {
|
34 |
/// Passes if the create mutation and the read query both succeed.
|
35 |
#[allow(clippy::float_cmp, dead_code)]
|
36 |
async fn scalar_lists_test<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
106 |
/// fail, as it sets a scalar property value rather than a list and is returned as such.
|
107 |
#[allow(clippy::float_cmp, dead_code)]
|
108 |
async fn scalar_lists_no_array_test<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
237 |
/// Passes if the create mutation and the read query both succeed.
|
238 |
#[allow(clippy::float_cmp, dead_code)]
|
239 |
async fn scalar_no_lists_no_array_test<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
652 |
#[allow(clippy::float_cmp, clippy::redundant_closure)]
|
653 |
fn execute_step_internal(&mut self) -> VMResult<()> {
|
69 |
/// Implementation of f32.nearest
|
70 |
#[allow(clippy::float_arithmetic, clippy::float_cmp)]
|
71 |
#[no_mangle]
|
114 |
/// Implementation of f64.nearest
|
115 |
#[allow(clippy::float_arithmetic, clippy::float_cmp)]
|
116 |
#[no_mangle]
|
70 |
/// Implementation of f32.nearest
|
71 |
#[allow(clippy::float_arithmetic, clippy::float_cmp)]
|
72 |
#[no_mangle]
|
115 |
/// Implementation of f64.nearest
|
116 |
#[allow(clippy::float_arithmetic, clippy::float_cmp)]
|
117 |
#[no_mangle]
|
1075 |
// no computation has been done on `time`
|
1076 |
#[allow(clippy::float_cmp)]
|
1077 |
if time != event.time {
|
106 |
#[allow(unknown_lints)]
|
107 |
#[allow(clippy::float_cmp)]
|
108 |
fn stringify_float_literal(&mut self, float_literal: f64) {
|
71 |
impl Evaluable for proto::Equal {
|
72 |
#[allow(clippy::float_cmp)]
|
73 |
fn evaluate(&self, _privacy_definition: &Option<proto::PrivacyDefinition>, mut arguments: NodeArguments) -> Result<ReleaseNode> {
|
191 |
impl Component for proto::Divide {
|
192 |
#[allow(clippy::float_cmp)]
|
193 |
fn propagate_property(
|
490 |
/// Utility function for building component expansions for dp mechanisms
|
491 |
#[allow(clippy::float_cmp)]
|
492 |
pub fn expand_mechanism(
|
474 |
#[test]
|
475 |
#[allow(clippy::float_cmp)]
|
476 |
fn as_f64() {
|
838 |
#[test]
|
839 |
#[allow(clippy::float_cmp)]
|
840 |
fn m128_reciprocal0() {
|
859 |
#[test]
|
860 |
#[allow(clippy::float_cmp)]
|
861 |
fn m128_reciprocal_sqrt0() {
|
870 |
#[test]
|
871 |
#[allow(clippy::float_cmp)]
|
872 |
fn m128_set() {
|
887 |
#[test]
|
888 |
#[allow(clippy::float_cmp)]
|
889 |
fn m128_set0() {
|
896 |
#[test]
|
897 |
#[allow(clippy::float_cmp)]
|
898 |
fn m128_set_reverse() {
|
738 |
#[test]
|
739 |
#[allow(clippy::float_cmp)]
|
740 |
fn m128d_extract0() {
|
1061 |
#[test]
|
1062 |
#[allow(clippy::float_cmp)]
|
1063 |
fn m128d_store_low() {
|
1070 |
#[test]
|
1071 |
#[allow(clippy::float_cmp)]
|
1072 |
fn m128d_store_high() {
|
206 |
#[test]
|
207 |
#[allow(clippy::float_cmp)]
|
208 |
fn starts_out_with_no_rates_or_count() {
|
111 |
#[cfg(test)]
|
112 |
#[allow(clippy::float_cmp)]
|
113 |
mod test {
|
133 |
#[test]
|
134 |
#[allow(clippy::float_cmp)]
|
135 |
fn basic() {
|
201 |
// the game rounds to even
|
202 |
#[allow(clippy::cast_sign_loss, clippy::cast_possible_truncation, clippy::float_cmp)]
|
203 |
if value % 1. == 0.5 && value as u8 % 2 == 0 {
|
1137 |
#[test]
|
1138 |
#[allow(clippy::float_cmp)]
|
1139 |
fn floating_point() {
|
462 |
for (index, sg) in fonts_data_read_lock.fonts[font_id].atlas_pages.iter().enumerate() {
|
463 |
#[allow(clippy::float_cmp)]
|
464 |
if sg.dpi_factor == dpi_factor && sg.font_size == font_size {
|
57 |
#[allow(clippy::float_cmp)]
|
58 |
fn try_const_eval_bin_expr(&self, _span: Span, op: BinOp, left_expr: &Expr, right_expr: &Expr) -> Option<Val> {
|
146 |
) {
|
147 |
#[allow(clippy::float_cmp)]
|
148 |
trapezoid_segments.extend(
|
190 |
}
|
191 |
#[allow(clippy::float_cmp)]
|
192 |
if scaled_value != self.scaled_value {
|
444 |
#[test]
|
445 |
#[allow(clippy::float_cmp)]
|
446 |
fn test_ratio_to_float() {
|
70 |
// `.fract().is_zero()` also works but `.fract()` is implemented by `self - self.trunc()`.
|
71 |
#[allow(clippy::float_cmp)]
|
72 |
if self.0 .0.trunc() == self.0 .0 {
|
119 |
// we need to check division by zero, so we can really just check if `high` is equal to `low` without using any kind of round error checks
|
120 |
#[allow(clippy::float_cmp)]
|
121 |
if self.high() == self.low() {
|
85 |
// we need to check division by zero, so we can really just check if `high` is equal to `low` without using any kind of round error checks
|
86 |
#[allow(clippy::float_cmp)]
|
87 |
let k_rows = if candle.high() == candle.low() {
|
184 |
// we need to check division by zero, so we can really just check if `highest` is equal to `lowest` without using any kind of round error checks
|
185 |
#[allow(clippy::float_cmp)]
|
186 |
let k_rows = if highest == lowest {
|
28 |
} else if let Some(value) = val.as_f64() {
|
29 |
#[allow(clippy::float_cmp)]
|
30 |
ListIndex::Single(if value != -1.0 {
|
460 |
for (index, sg) in fonts_data_read_lock.fonts[font_id].atlas_pages.iter().enumerate() {
|
461 |
#[allow(clippy::float_cmp)]
|
462 |
if sg.dpi_factor == dpi_factor && sg.font_size == font_size {
|
189 |
}
|
190 |
#[allow(clippy::float_cmp)]
|
191 |
if scaled_value != self.scaled_value {
|
51 |
#[allow(clippy::float_cmp)]
|
52 |
fn try_const_eval_bin_expr(&self, _span: Span, op: BinOp, left_expr: &Expr, right_expr: &Expr) -> Option<Val> {
|
140 |
) {
|
141 |
#[allow(clippy::float_cmp)]
|
142 |
trapezoid_segments.extend(
|
143 |
let mut changed = false;
|
144 |
#[allow(clippy::float_cmp)]
|
145 |
if scaled_value != self.scaled_value {
|
7 |
#![allow(clippy::float_cmp)]
|
310 |
clippy::excessive_precision,
|
311 |
clippy::float_cmp,
|
312 |
clippy::manual_range_contains,
|
52 |
clippy::suspicious_op_assign_impl,
|
53 |
clippy::float_cmp,
|
54 |
clippy::unsafe_derive_deserialize,
|
1 |
#![allow(clippy::type_complexity, clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
use bitflags::bitflags;
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
use bitflags::bitflags;
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
pub use crate::imgui_sys as sys;
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
91 |
#![allow(
|
92 |
clippy::float_cmp,
|
93 |
clippy::suspicious_operation_groupings,
|
16 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
356 |
mod tests {
|
357 |
#![allow(clippy::float_cmp)]
|
358 |
use crate::prelude::*;
|
241 |
mod tests {
|
242 |
#![allow(clippy::float_cmp)]
|
243 |
use crate::prelude::*;
|
204 |
mod tests {
|
205 |
#![allow(clippy::float_cmp)]
|
206 |
use crate::prelude::*;
|
3 |
#![allow(clippy::too_many_arguments)]
|
4 |
#![allow(clippy::float_cmp)]
|
1177 |
pub fn add_stop(&mut self, color: Color, position: Fraction) -> &mut Self {
|
1178 |
#![allow(clippy::float_cmp)]
|
1179 |
let same_position = self
|
17 |
pub fn value(self) -> Scalar {
|
18 |
#![allow(clippy::float_cmp)]
|
19 |
if self.unclipped == 360.0 {
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
//! Utilities for interaction of agents and environments.
|
1 |
//! Wrapper of gym environments implemented in Python.
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
use crate::{AtariWrapper, PyGymEnvConfig};
|
11 |
clippy::unreadable_literal,
|
12 |
clippy::float_cmp
|
13 |
)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
#![deny(clippy::if_not_else)]
|
122 |
fn f64() {
|
123 |
#![allow(clippy::float_cmp)]
|
130 |
fn f64() {
|
131 |
#![allow(clippy::float_cmp)]
|
24 |
//! ```
|
25 |
#![allow(clippy::float_cmp)]
|
26 |
use crate::column::{get_col, NamedCol};
|
1 |
//! Floating Point expressions
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
use crate::distributions::*;
|
296 |
mod test {
|
297 |
#![allow(clippy::float_cmp)]
|
19 |
#![allow(clippy::float_cmp)]
|
150 |
// The floating point values should be the same, so using standard equality is valid.
|
151 |
#![allow(clippy::float_cmp)]
|
5 |
clippy::cast_possible_wrap,
|
6 |
clippy::float_cmp,
|
7 |
clippy::needless_pass_by_value,
|
1 |
#![allow(clippy::float_cmp)]
|
114 |
#![allow(
|
115 |
clippy::float_cmp,
|
116 |
clippy::useless_attribute,
|
79 |
#![allow(clippy::approx_constant)]
|
80 |
#![allow(clippy::float_cmp)]
|
81 |
#![allow(clippy::needless_range_loop)]
|
23 |
clippy::excessive_precision,
|
24 |
clippy::float_cmp,
|
25 |
clippy::int_plus_one,
|
404 |
fn test_numeric_conversions() -> Result<()> {
|
405 |
#![allow(clippy::float_cmp)]
|
299 |
#![allow(clippy::float_cmp)]
|
300 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::float_cmp)]
|
12 |
#![allow(clippy::manual_range_contains)]
|
9 |
#![allow(clippy::float_cmp)]
|
10 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::float_cmp)]
|
12 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::float_cmp)]
|
12 |
#![allow(clippy::manual_range_contains)]
|
11 |
#![allow(clippy::float_cmp)]
|
12 |
#![allow(clippy::manual_range_contains)]
|
22 |
#![allow(clippy::float_cmp)]
|
546 |
mod tests {
|
547 |
#![allow(clippy::float_cmp)]
|
548 |
use super::*;
|
68 |
fn supports_generic_fields() {
|
69 |
#![allow(clippy::float_cmp)]
|
1259 |
fn supports_generic_fields() {
|
1260 |
#![allow(clippy::float_cmp)]
|
120 |
fn supports_generic_ent_fields() {
|
121 |
#![allow(clippy::float_cmp)]
|
12 |
#![allow(clippy::float_cmp)]
|
13 |
#![allow(clippy::manual_range_contains)]
|
87 |
)]
|
88 |
#![allow(clippy::float_cmp)]
|
89 |
#![allow(clippy::manual_range_contains)]
|
76 |
clippy::cast_precision_loss,
|
77 |
clippy::float_cmp
|
78 |
)]
|
88 |
)]
|
89 |
#![allow(clippy::float_cmp)]
|
90 |
#![allow(clippy::manual_range_contains)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
9 |
clippy::type_complexity,
|
10 |
clippy::float_cmp,
|
11 |
clippy::len_zero,
|
4 |
clippy::type_complexity,
|
5 |
clippy::float_cmp,
|
6 |
clippy::len_zero,
|
4 |
clippy::type_complexity,
|
5 |
clippy::float_cmp,
|
6 |
clippy::len_zero,
|
8 |
#![allow(clippy::float_cmp)]
|
30 |
#![allow(clippy::float_cmp)]
|
6 |
#![allow(irrefutable_let_patterns)]
|
7 |
#![allow(clippy::float_cmp)]
|
8 |
#![allow(clippy::upper_case_acronyms)]
|
1 |
#![allow(clippy::float_cmp)]
|
7 |
clippy::cognitive_complexity,
|
8 |
clippy::float_cmp,
|
9 |
// clippy::similar_names,
|
19 |
deprecated,
|
20 |
clippy::float_cmp,
|
21 |
clippy::cognitive_complexity,
|
68 |
#![warn(clippy::all)]
|
69 |
#![allow(clippy::float_cmp)]
|
3 |
clippy::wildcard_imports,
|
4 |
clippy::float_cmp,
|
5 |
clippy::cast_lossless,
|
4 |
non_camel_case_types,
|
5 |
clippy::float_cmp,
|
6 |
clippy::from_over_into,
|
74 |
clippy::cast_precision_loss,
|
75 |
clippy::float_cmp,
|
76 |
clippy::wildcard_imports,
|
74 |
clippy::cast_precision_loss,
|
75 |
clippy::float_cmp,
|
76 |
clippy::wildcard_imports,
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
#![allow(clippy::unnecessary_operation)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
#![allow(clippy::unreadable_literal)]
|
1 |
#![allow(bad_style)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
//! Functionality relating to the JSON number type
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
11 |
clippy::single_match,
|
12 |
clippy::float_cmp,
|
13 |
clippy::cast_lossless
|
5 |
clippy::float_arithmetic,
|
6 |
clippy::float_cmp,
|
7 |
clippy::implicit_return,
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
use bitflags::bitflags;
|
16 |
#![allow(clippy::float_cmp)]
|
3 |
#![allow(clippy::bool_assert_comparison)]
|
4 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::unused_unit)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
#![allow(clippy::clone_on_copy)] // the float type needs explicit cloning if the rug feature is enabled
|
301 |
mod test {
|
302 |
#![allow(clippy::float_cmp)]
|
29 |
#![allow(clippy::new_without_default_derive)]
|
30 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
10 |
#![allow(clippy::mixed_case_hex_literals)]
|
11 |
#![allow(clippy::float_cmp)]
|
12 |
#![allow(clippy::eq_op)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
//! Most tests here are just the example code for each method in the stdlib,
|
103 |
fn test_duty_cycle_req_new() {
|
104 |
#![allow(clippy::float_cmp)]
|
105 |
let data = vec![0x02];
|
103 |
fn test_duty_cycle_req_new() {
|
104 |
#![allow(clippy::float_cmp)]
|
105 |
let data = vec![0x02];
|
2 |
#![deny(bare_trait_objects)]
|
3 |
#![allow(clippy::float_cmp)]
|
4 |
#![no_std]
|
3 |
#![deny(unconditional_recursion)]
|
4 |
#![allow(clippy::float_cmp)]
|
5 |
#![allow(clippy::too_many_arguments)]
|
184 |
fn test_srgba() {
|
185 |
#![allow(clippy::float_cmp)]
|
112 |
fn test_plane3() {
|
113 |
#![allow(clippy::float_cmp)]
|
114 |
let point = Vec3::new(2.0, 3.0, 4.0);
|
95 |
clippy::cognitive_complexity,
|
96 |
clippy::float_cmp,
|
97 |
clippy::many_single_char_names,
|
28 |
clippy::excessive_precision,
|
29 |
clippy::float_cmp,
|
30 |
clippy::too_many_arguments,
|
11 |
clippy::too_many_arguments,
|
12 |
clippy::float_cmp,
|
13 |
clippy::type_complexity
|
11 |
clippy::too_many_arguments,
|
12 |
clippy::float_cmp,
|
13 |
clippy::type_complexity
|
73 |
#![allow(clippy::float_cmp)]
|
7 |
#![allow(clippy::float_cmp)]
|
7 |
#![allow(clippy::float_cmp)]
|
71 |
mod test {
|
72 |
#![allow(clippy::float_cmp)]
|
73 |
use super::*;
|
68 |
#![no_std]
|
69 |
#![allow(clippy::float_cmp)]
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
extern crate mpi;
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
extern crate mpi;
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
extern crate mpi_fork_fnsp as mpi;
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
extern crate mpi_fork_fnsp as mpi;
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
extern crate nalgebra as na;
|
6 |
clippy::many_single_char_names,
|
7 |
clippy::float_cmp
|
8 |
)]
|
5 |
clippy::many_single_char_names,
|
6 |
clippy::float_cmp
|
7 |
)]
|
1 |
#![allow(clippy::float_cmp)]
|
5 |
clippy::many_single_char_names,
|
6 |
clippy::float_cmp
|
7 |
)]
|
5 |
clippy::many_single_char_names,
|
6 |
clippy::float_cmp
|
7 |
)]
|
5 |
clippy::many_single_char_names,
|
6 |
clippy::float_cmp
|
7 |
)]
|
5 |
clippy::many_single_char_names,
|
6 |
clippy::float_cmp
|
7 |
)]
|
5 |
clippy::many_single_char_names,
|
6 |
clippy::float_cmp
|
7 |
)]
|
9 |
#![allow(clippy::float_cmp)]
|
10 |
#![allow(clippy::similar_names)]
|
1 |
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, match_wild_err_arm))]
|
2 |
extern crate ord_subset;
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp, clippy::eq_op, clippy::op_ref)]
|
1 |
#![allow(clippy::float_cmp, clippy::non_ascii_literal, non_snake_case)]
|
1256 |
pub fn add_stop(&mut self, color: Color, position: Fraction) -> &mut Self {
|
1257 |
#![allow(clippy::float_cmp)]
|
1258 |
let same_position = self
|
17 |
pub fn value(self) -> Scalar {
|
18 |
#![allow(clippy::float_cmp)]
|
19 |
if self.unclipped == 360.0 {
|
267 |
#![allow(clippy::cognitive_complexity)]
|
268 |
#![allow(clippy::float_cmp)]
|
269 |
#![deny(nonstandard_style)]
|
1 |
#![forbid(missing_docs)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
//! # PHP serialization format support for serde
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
177 |
clippy::doc_markdown,
|
178 |
clippy::float_cmp,
|
179 |
clippy::inline_always,
|
69 |
clippy::doc_markdown,
|
70 |
clippy::float_cmp,
|
71 |
clippy::inline_always,
|
12 |
#![allow(clippy::must_use_candidate)]
|
13 |
#![allow(clippy::float_cmp)]
|
14 |
#![allow(clippy::cast_precision_loss)]
|
90 |
// crate-specific exceptions:
|
91 |
#![allow(clippy::float_cmp, clippy::manual_range_contains)]
|
57 |
// PyFloat_AsDouble returns -1.0 upon failure
|
58 |
#![allow(clippy::float_cmp)]
|
59 |
fn extract(obj: &'source PyAny) -> PyResult<Self> {
|
7 |
clippy::cast_sign_loss,
|
8 |
clippy::float_cmp,
|
9 |
clippy::fn_params_excessive_bools,
|
1 |
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
54 |
#![allow(
|
55 |
clippy::float_cmp,
|
56 |
clippy::neg_cmp_op_on_partial_ord,
|
17 |
clippy::excessive_precision,
|
18 |
clippy::float_cmp,
|
19 |
clippy::unreadable_literal
|
1478 |
fn f64() {
|
1479 |
#![allow(clippy::float_cmp)]
|
130 |
fn f64() {
|
131 |
#![allow(clippy::float_cmp)]
|
8 |
#![allow(clippy::float_cmp)]
|
31 |
#![allow(clippy::float_cmp)]
|
6 |
#![allow(irrefutable_let_patterns)]
|
7 |
#![allow(clippy::float_cmp)]
|
8 |
#![allow(clippy::upper_case_acronyms)]
|
3 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
16 |
clippy::must_use_candidate,
|
17 |
clippy::float_cmp,
|
18 |
clippy::similar_names,
|
17 |
#![allow(clippy::float_cmp)]
|
17 |
#![allow(clippy::float_cmp)]
|
390 |
fn test_numeric_conversions() -> Result<()> {
|
391 |
#![allow(clippy::float_cmp)]
|
390 |
fn test_numeric_conversions() -> Result<()> {
|
391 |
#![allow(clippy::float_cmp)]
|
401 |
fn test_numeric_conversions() -> Result<()> {
|
402 |
#![allow(clippy::float_cmp)]
|
23 |
clippy::cast_lossless,
|
24 |
clippy::float_cmp,
|
25 |
clippy::int_plus_one,
|
22 |
clippy::approx_constant,
|
23 |
clippy::float_cmp,
|
24 |
clippy::non_ascii_literal,
|
28 |
clippy::excessive_precision,
|
29 |
clippy::float_cmp,
|
30 |
clippy::manual_range_contains,
|
28 |
clippy::checked_conversions,
|
29 |
clippy::float_cmp,
|
30 |
clippy::manual_range_contains,
|
24 |
clippy::cast_lossless,
|
25 |
clippy::float_cmp,
|
26 |
clippy::int_plus_one,
|
22 |
clippy::approx_constant,
|
23 |
clippy::float_cmp,
|
24 |
clippy::non_ascii_literal,
|
21 |
#![allow(clippy::float_cmp)]
|
22 |
#![cfg(not(feature = "small"))]
|
29 |
clippy::excessive_precision,
|
30 |
clippy::float_cmp,
|
31 |
clippy::manual_range_contains,
|
28 |
clippy::checked_conversions,
|
29 |
clippy::float_cmp,
|
30 |
clippy::manual_range_contains,
|
1 |
#![allow(clippy::float_cmp, clippy::redundant_clone, clippy::unit_cmp)]
|
1 |
#![allow(clippy::float_cmp, clippy::redundant_clone)]
|
311 |
clippy::explicit_auto_deref,
|
312 |
clippy::float_cmp,
|
313 |
clippy::manual_range_contains,
|
9 |
clippy::excessive_precision,
|
10 |
clippy::float_cmp,
|
11 |
clippy::if_not_else,
|
1 |
#![allow(clippy::float_cmp)]
|
6 |
clippy::excessive_precision,
|
7 |
clippy::float_cmp,
|
8 |
clippy::items_after_statements,
|
318 |
clippy::excessive_precision,
|
319 |
clippy::float_cmp,
|
320 |
clippy::manual_range_contains,
|
310 |
clippy::excessive_precision,
|
311 |
clippy::float_cmp,
|
312 |
clippy::manual_range_contains,
|
1 |
#![forbid(missing_docs)]
|
2 |
#![allow(clippy::float_cmp)]
|
3 |
//! # PHP serialization format support for serde
|
145 |
// Ignored clippy lints
|
146 |
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, needless_doctest_main))]
|
147 |
// Ignored clippy_pedantic lints
|
657 |
fn exec() {
|
658 |
#![allow(clippy::float_cmp)]
|
7 |
#![allow(clippy::cast_lossless)]
|
8 |
#![allow(clippy::float_cmp)]
|
9 |
#![allow(clippy::cognitive_complexity)]
|
46 |
//! are generated as expected.
|
47 |
#![allow(clippy::float_cmp)]
|
48 |
pub use super::stats::*;
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
#![allow(clippy::cast_lossless)]
|
3 |
#![allow(clippy::float_cmp)]
|
4 |
#![allow(clippy::many_single_char_names)]
|
71 |
clippy::fallible_impl_from,
|
72 |
clippy::float_cmp
|
73 |
)]
|
389 |
#![allow(clippy::missing_safety_doc)]
|
390 |
#![allow(clippy::float_cmp)]
|
391 |
// FIXME: Temporary
|
46 |
clippy::suspicious_op_assign_impl,
|
47 |
clippy::float_cmp,
|
48 |
clippy::unsafe_derive_deserialize,
|
1 |
#![allow(clippy::float_cmp)]
|
25 |
#![allow(clippy::float_cmp)]
|
26 |
#![allow(clippy::many_single_char_names)]
|
1 |
#![allow(clippy::float_cmp, clippy::non_ascii_literal)]
|
176 |
clippy::module_name_repetitions,
|
177 |
clippy::float_cmp,
|
178 |
clippy::many_single_char_names,
|
17 |
clippy::module_name_repetitions,
|
18 |
clippy::float_cmp,
|
19 |
clippy::many_single_char_names,
|
46 |
mod tests {
|
47 |
#![allow(clippy::float_cmp)]
|
48 |
use super::*;
|
181 |
mod tests {
|
182 |
#![allow(clippy::float_cmp)]
|
183 |
use super::*;
|
1 |
#![allow(clippy::float_cmp)]
|
7 |
#![allow(clippy::float_cmp)]
|
773 |
mod test {
|
774 |
#![allow(clippy::float_cmp)]
|
775 |
use super::*;
|
63 |
#![allow(clippy::excessive_precision)]
|
64 |
#![allow(clippy::float_cmp)]
|
65 |
#![allow(clippy::suspicious_arithmetic_impl)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
1 |
#![cfg(feature = "math_funcs")]
|
2 |
#![allow(clippy::float_cmp)]
|
10 |
clippy::cognitive_complexity,
|
11 |
clippy::float_cmp,
|
12 |
clippy::similar_names,
|
1 |
#![allow(dead_code)]
|
2 |
#![allow(clippy::float_cmp)]
|
1 |
#![allow(clippy::float_cmp)]
|
2 |
#![allow(unused_variables)]
|
3 |
#![allow(clippy::explicit_counter_loop, clippy::float_cmp)]
|
1 |
#![allow(unused_variables)]
|
2 |
#![allow(clippy::explicit_counter_loop, clippy::float_cmp)]
|
1 |
#![allow(unused_variables)]
|
2 |
#![allow(clippy::explicit_counter_loop, clippy::float_cmp)]
|
5 |
clippy::explicit_counter_loop,
|
6 |
clippy::float_cmp,
|
7 |
clippy::unnecessary_unwrap,
|
3 |
#![allow(dead_code)]
|
4 |
#![allow(clippy::explicit_counter_loop, clippy::float_cmp)]
|
5 |
clippy::if_same_then_else,
|
6 |
clippy::float_cmp,
|
7 |
clippy::collapsible_if,
|
3 |
//! Serialization support for primitive data types.
|
4 |
#![allow(clippy::float_cmp)]
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::float_cmp,
|
4 |
clippy::let_unit_value,
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::float_cmp,
|
4 |
clippy::let_unit_value,
|
87 |
clippy::trivially_copy_pass_by_ref,
|
88 |
clippy::float_cmp,
|
89 |
clippy::needless_doctest_main,
|
11 |
// Not great but we do these comparisons all over the place..
|
12 |
#![allow(clippy::float_cmp)]
|
13 |
// We want to use links to private fields, since we use `--document-private-items`.
|
11 |
// Not great but we do these comparisons all over the place..
|
12 |
#![allow(clippy::float_cmp)]
|
13 |
// We want to use links to private fields, since we use `--document-private-items`.
|
11 |
// Not great but we do these comparisons all over the place..
|
12 |
#![allow(clippy::float_cmp)]
|
13 |
// We want to use links to private fields, since we use `--document-private-items`.
|
5 |
// Not great but we do these comparisons all over the place..
|
6 |
#![allow(clippy::float_cmp)]
|
7 |
// We want to use links to private fields, since we use `--document-private-items`.
|
5 |
// Not great but we do these comparisons all over the place..
|
6 |
#![allow(clippy::float_cmp)]
|