rust/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
README.md

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