Silence clippy warnings in spectra_xyz sub-crate.
This commit is contained in:
parent
f9d75f490c
commit
53424b393d
|
@ -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')
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user