Clarify that modulo_one
only applies to ints
This commit is contained in:
parent
32374a196d
commit
cfccdbb164
@ -627,7 +627,7 @@ declare_clippy_lint! {
|
|||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
/// ### What it does
|
/// ### What it does
|
||||||
/// Checks for getting the remainder of a division by one or minus
|
/// Checks for getting the remainder of integer division by one or minus
|
||||||
/// one.
|
/// one.
|
||||||
///
|
///
|
||||||
/// ### Why is this bad?
|
/// ### Why is this bad?
|
||||||
@ -646,7 +646,7 @@ declare_clippy_lint! {
|
|||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "pre 1.29.0"]
|
||||||
pub MODULO_ONE,
|
pub MODULO_ONE,
|
||||||
correctness,
|
correctness,
|
||||||
"taking a number modulo +/-1, which can either panic/overflow or always returns 0"
|
"taking an integer modulo +/-1, which can either panic/overflow or always returns 0"
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user