mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
commit
851470639d
3 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ Also please document your lint with a doc comment akin to the following:
|
|||
/// **Example:** Insert a short example if you have one
|
||||
```
|
||||
|
||||
Our `util/update_wiki.py` script can then add your ilnt docs to the wiki.
|
||||
Our `util/update_wiki.py` script can then add your lint docs to the wiki.
|
||||
|
||||
## Contributions
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ use utils::span_lint;
|
|||
/// **What it does:** This lint checks for incompatible bit masks in comparisons. It is `Warn` by default.
|
||||
///
|
||||
/// The formula for detecting if an expression of the type `_ <bit_op> m <cmp_op> c` (where `<bit_op>`
|
||||
/// is one of {`&`, '|'} and `<cmp_op>` is one of {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following table:
|
||||
/// is one of {`&`, `|`} and `<cmp_op>` is one of {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following table:
|
||||
///
|
||||
/// |Comparison |Bit-Op|Example |is always|Formula |
|
||||
/// |------------|------|------------|---------|----------------------|
|
||||
|
|
|
@ -10,7 +10,7 @@ use utils::span_lint;
|
|||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
/// **Example:** `Point { x: 1, y: 0, ..zero_point }``
|
||||
/// **Example:** `Point { x: 1, y: 0, ..zero_point }`
|
||||
declare_lint! {
|
||||
pub NEEDLESS_UPDATE,
|
||||
Warn,
|
||||
|
|
Loading…
Reference in a new issue