mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
13 lines
427 B
TOML
13 lines
427 B
TOML
[[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.
|
|
'''
|