sqlx/clippy.toml

14 lines
427 B
TOML
Raw Normal View History

2024-06-06 03:15:44 +00:00
[[disallowed-methods]]
path = "core::cmp::Ord::min"
reason = '''
too easy to misread `x.min(y)` as "let the minimum value of `x` be `y`" when it actually means the exact opposite;
use `std::cmp::min` instead.
'''
[[disallowed-methods]]
path = "core::cmp::Ord::max"
reason = '''
too easy to misread `x.max(y)` as "let the maximum value of `x` be `y`" when it actually means the exact opposite;
use `std::cmp::max` instead.
'''