rust-clippy/clippy_lints
Michael Wright 3cf8c0b3b5 Fix cast_sign_loss false positive
This checks if the value is a non-negative constant before linting about
losing the sign.

Because the `constant` function doesn't handle const functions, we check if
the value is from a call to a `max_value` function directly. A utility method
called `get_def_path` was added to make checking for the function paths
easier.

Fixes #2728
2019-01-31 06:32:29 +02:00
..
src Fix cast_sign_loss false positive 2019-01-31 06:32:29 +02:00
Cargo.toml chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1 2019-01-25 21:53:44 +01:00
README.md rust-lang-nursery/rust-clippy => rust-lang/rust-clippy 2018-11-22 04:40:09 +01:00

This crate contains Clippy lints. For the main crate, check crates.io or GitHub.