forked from pdeljanov/Symphonia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.toml
42 lines (42 loc) · 1.71 KB
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# The following lints are ALLOWED in all Symphonia crates.
#
# --------------------------------------------------------------------------------------------------
#
# Lint:
# clippy::manual_range_contains
#
# Justification:
# Where possible, expressing an algorithm as closely as possible to the specification is
# preferrable. Rewriting using range syntax provides marginal benefit, but could be confusing.
#
# --------------------------------------------------------------------------------------------------
#
# Lint:
# clippy::comparison_chain
#
# Justification:
# There is a performance penalty associated with the recommended idiom.
#
# --------------------------------------------------------------------------------------------------
#
# Lint:
# clippy::excessive_precision
#
# Justification:
# Floating point constants provided by specifications and papers often provide extra digits that
# are truncated when using 32-bit floating point airthmetic. By keeping this precision, we can use
# the values provided directly & without modification, and, when investigating accuracy issues,
# we can easily switch to 64-bit floating point arithmetic and benefit from the higher precision.
#
# --------------------------------------------------------------------------------------------------
#
# Lint:
# clippy::identity_op
#
# Justification:
# Sometimes the base or initial case of an unrolled multi-iteration/step mathematical expression
# contains operations that are otherwise no-ops. Disable the warning for these expressions because
# they're instructive to the reader and improve the code aesthetics.
#
# --------------------------------------------------------------------------------------------------
msrv = "1.53"