### What it does Currently, Rust have three way to getting min/max of an integers: 1) module constants: `std::i32::MAX` 2) type constants: `i32::MAX` 3) const methods: `i32::max_value()` (3) is soft-deprecated and replaced by 2) when possible. [T-libs](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Deprecate.20.7Binteger.7D.3A.3A.7Bmin.2Cmax.7D_value.20methods) doesn't want to deprecate 1) and 3) now until next Rust edition, but we have no tools to enforce style for 2), it is great to have such a lint in Clippy. ### Categories (optional) - Kind: style ### Drawbacks None.