26 |
/// iterable `items` and `None` in unused slots.
|
27 |
#[allow(clippy::float_arithmetic)]
|
28 |
pub fn generate_table<'cont, T, I: iter::Iterator<Item = &'cont T>, H: Fn(&T) -> usize>(
|
14 |
/// iterable `items` and `None` in unused slots.
|
15 |
#[allow(clippy::float_arithmetic)]
|
16 |
pub fn generate_table<'cont, T, I: iter::Iterator<Item = &'cont T>, H: Fn(&T) -> usize>(
|
127 |
clippy::cast_sign_loss,
|
128 |
clippy::float_arithmetic
|
129 |
)]
|
45 |
impl Fitness<EvolveHelloWorld> for EvolvedString {
|
46 |
#[allow(clippy::cast_precision_loss, clippy::float_arithmetic)]
|
47 |
fn fitness(&self, environment: &EvolveHelloWorld) -> f64 {
|
636 |
#[allow(clippy::shadow_reuse, clippy::shadow_unrelated, clippy::float_arithmetic)]
|
637 |
let species = species
|
762 |
{
|
763 |
#[allow(clippy::float_arithmetic)]
|
764 |
let total_adjusted_fitness = self
|
804 |
clippy::cast_precision_loss,
|
805 |
clippy::float_arithmetic,
|
806 |
clippy::cast_possible_truncation
|
1316 |
impl FitnessTrait<TestEnvironment> for TestPhenotype {
|
1317 |
#[allow(clippy::cast_precision_loss, clippy::float_arithmetic)]
|
1318 |
fn fitness(&self, environment: &TestEnvironment) -> f64 {
|
22 |
/// For arrays of the same size we can simply use the hamming distance.
|
23 |
#[allow(clippy::cast_precision_loss, clippy::float_arithmetic, clippy::as_conversions)]
|
24 |
fn distance(&self, other: &Self) -> f32 {
|
12 |
impl Distance for String {
|
13 |
#[allow(clippy::float_arithmetic, clippy::cast_precision_loss)]
|
14 |
// this algorithm should be fine as it is
|
24 |
/// genes the same distance as differing ones.
|
25 |
#[allow(clippy::float_arithmetic, clippy::cast_precision_loss)]
|
26 |
fn distance(&self, other: &Self) -> f32 {
|
11 |
#[allow(clippy::cast_precision_loss)]
|
12 |
#[allow(clippy::float_arithmetic)]
|
13 |
// We verify `rate` to be positive, so this can never happen.
|
40 |
// this is going to get rather complicated once the type becomes generic, but for now it's okay
|
41 |
#[allow(clippy::float_arithmetic)]
|
42 |
// We know the population can not be empty at this point. Even if it was through a bug, that
|
1385 |
#[allow(clippy::cast_precision_loss)]
|
1386 |
#[allow(clippy::float_arithmetic)]
|
1387 |
#[doc(hidden)]
|
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 {
|
1385 |
#[allow(clippy::cast_precision_loss)]
|
1386 |
#[allow(clippy::float_arithmetic)]
|
1387 |
#[doc(hidden)]
|
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]
|
20 |
clippy::exhaustive_structs,
|
21 |
clippy::float_arithmetic,
|
22 |
clippy::implicit_return,
|
1 |
//! Fold operations on constants at compile time.
|
2 |
#![allow(clippy::float_arithmetic)]
|
21 |
clippy::expect_used,
|
22 |
clippy::float_arithmetic,
|
23 |
clippy::implicit_return,
|
18 |
#![allow(clippy::separated_literal_suffix)]
|
19 |
#![allow(clippy::float_arithmetic)]
|
20 |
#![allow(clippy::struct_excessive_bools)]
|
18 |
clippy::else_if_without_else,
|
19 |
clippy::float_arithmetic,
|
20 |
clippy::implicit_return,
|
24 |
#![allow(clippy::else_if_without_else)]
|
25 |
#![allow(clippy::float_arithmetic)]
|
26 |
#![allow(clippy::float_cmp_const)]
|
25 |
#![allow(clippy::else_if_without_else)]
|
26 |
#![allow(clippy::float_arithmetic)]
|
27 |
#![allow(clippy::float_cmp_const)]
|
65 |
#![allow(clippy::else_if_without_else)]
|
66 |
#![allow(clippy::float_arithmetic)]
|
67 |
#![allow(clippy::float_cmp_const)]
|
18 |
clippy::else_if_without_else,
|
19 |
clippy::float_arithmetic,
|
20 |
clippy::implicit_return,
|
1 |
//! Fold operations on constants at compile time.
|
2 |
#![allow(clippy::float_arithmetic)]
|
7 |
#![allow(
|
8 |
clippy::float_arithmetic,
|
9 |
clippy::implicit_return,
|
7 |
#![allow(
|
8 |
clippy::float_arithmetic,
|
9 |
clippy::implicit_return,
|
18 |
clippy::else_if_without_else,
|
19 |
clippy::float_arithmetic,
|
20 |
clippy::implicit_return,
|
25 |
#![allow(
|
26 |
clippy::float_arithmetic,
|
27 |
clippy::implicit_return,
|
4 |
clippy::enum_glob_use,
|
5 |
clippy::float_arithmetic,
|
6 |
clippy::float_cmp,
|
68 |
#![allow(
|
69 |
clippy::float_arithmetic,
|
70 |
clippy::implicit_return,
|
6 |
#![allow(
|
7 |
clippy::float_arithmetic,
|
8 |
clippy::implicit_return,
|
12 |
clippy::integer_arithmetic,
|
13 |
clippy::float_arithmetic,
|
14 |
clippy::blanket_clippy_restriction_lints,
|
175 |
// Why is this bad: For some embedded systems or kernel development, it can be useful to rule out floating-point numbers.
|
176 |
clippy::float_arithmetic,
|
177 |
// Why is this bad : Doc is good. rustc has a MISSING_DOCS allowed-by-default lint for public members, but has no way to enforce documentation of private items. This lint fixes that.
|
92 |
// Why is this bad: For some embedded systems or kernel development, it can be useful to rule out floating-point numbers.
|
93 |
clippy::float_arithmetic,
|
94 |
// Why is this bad : Doc is good. rustc has a MISSING_DOCS allowed-by-default lint for public members, but has no way to enforce documentation of private items. This lint fixes that.
|
112 |
//Why is this bad: For some embedded systems or kernel development, it can be useful to rule out floating-point numbers.
|
113 |
clippy::float_arithmetic,
|
114 |
//Why is this bad : Doc is good. rustc has a MISSING_DOCS allowed-by-default lint for public members, but has no way to enforce documentation of private items. This lint fixes that.
|
14 |
#![allow(clippy::float_arithmetic)]
|
14 |
#![allow(clippy::float_arithmetic)]
|
1 |
#![allow(clippy::float_arithmetic)]
|
68 |
clippy::enum_glob_use,
|
69 |
clippy::float_arithmetic, clippy::implicit_return,
|
70 |
clippy::indexing_slicing, clippy::inline_asm_x86_intel_syntax,
|
12 |
#![allow(
|
13 |
clippy::float_arithmetic,
|
14 |
clippy::implicit_return,
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
12 |
clippy::blanket_clippy_restriction_lints,
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
12 |
clippy::blanket_clippy_restriction_lints,
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
12 |
clippy::blanket_clippy_restriction_lints,
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
12 |
clippy::blanket_clippy_restriction_lints,
|
10 |
clippy::integer_arithmetic,
|
11 |
clippy::float_arithmetic,
|
12 |
clippy::blanket_clippy_restriction_lints,
|
69 |
clippy::cast_sign_loss,
|
70 |
clippy::float_arithmetic,
|
71 |
clippy::pattern_type_mismatch,
|
28 |
clippy::cast_sign_loss,
|
29 |
clippy::float_arithmetic,
|
30 |
clippy::pattern_type_mismatch,
|
1 |
#![allow(clippy::float_arithmetic)]
|
30 |
#![allow(clippy::print_stdout)]
|
31 |
#![allow(clippy::float_arithmetic)]
|
32 |
#![allow(clippy::cast_precision_loss)]
|
1 |
#![allow(clippy::float_arithmetic)]
|
30 |
#![allow(clippy::print_stdout)]
|
31 |
#![allow(clippy::float_arithmetic)]
|
5 |
#![allow(clippy::implicit_return)]
|
6 |
#![allow(clippy::float_arithmetic)]
|
7 |
#![allow(clippy::inline_always)]
|
1 |
#![allow(clippy::float_arithmetic)]
|
30 |
#![allow(clippy::print_stdout)]
|
31 |
#![allow(clippy::float_arithmetic)]
|