blob: 3a3f6640979bd3e99186523efe2e13a02374f631 [file] [edit]
# 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.85"