diff --git a/sub_crates/spectra_xyz/src/generate_spectra_tables.py b/sub_crates/spectra_xyz/src/generate_spectra_tables.py index 3be86cf..9f5d4f0 100755 --- a/sub_crates/spectra_xyz/src/generate_spectra_tables.py +++ b/sub_crates/spectra_xyz/src/generate_spectra_tables.py @@ -781,6 +781,7 @@ def write_output(data_points, grid, grid_res, filename): f.write('#![allow(dead_code)]\n') f.write('#![cfg_attr(rustfmt, rustfmt_skip)]\n') f.write('#![allow(clippy::unreadable_literal)]\n') + f.write('#![allow(clippy::excessive_precision)]\n') f.write('\n') f.write('/// This is 1 over the integral over either CMF.\n') f.write('/// Spectra can be mapped so that xyz=(1,1,1) is converted to constant 1 by\n') diff --git a/sub_crates/spectra_xyz/src/lib.rs b/sub_crates/spectra_xyz/src/lib.rs index a401c42..c2fb120 100644 --- a/sub_crates/spectra_xyz/src/lib.rs +++ b/sub_crates/spectra_xyz/src/lib.rs @@ -1,3 +1,9 @@ +// Since this is basicallt translated from C, silence a bunch of +// clippy warnings that stem from the C code. +#![allow(clippy::needless_return)] +#![allow(clippy::useless_let_if_seq)] +#![allow(clippy::cyclomatic_complexity)] + extern crate float4; use float4::Float4; diff --git a/sub_crates/spectra_xyz/src/spectra_tables.rs b/sub_crates/spectra_xyz/src/spectra_tables.rs index 5782921..ec06a0c 100644 --- a/sub_crates/spectra_xyz/src/spectra_tables.rs +++ b/sub_crates/spectra_xyz/src/spectra_tables.rs @@ -2,6 +2,7 @@ #![allow(dead_code)] #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(clippy::unreadable_literal)] +#![allow(clippy::excessive_precision)] /// This is 1 over the integral over either CMF. /// Spectra can be mapped so that xyz=(1,1,1) is converted to constant 1 by