Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: a40958a
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Oct 29, 2023
1 parent 7dc31d9 commit 0587a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -4838,7 +4838,7 @@
},
"group": "suspicious",
"level": "warn",
"docs": "\n### What it does\nChecks for `#[cfg(features = \"...\")]` and suggests to replace it with\n`#[cfg(feature = \"...\")]`.\n\n### Why is this bad?\nMisspelling `feature` as `features` can be sometimes hard to spot. It\nmay cause conditional compilation not work quitely.\n\n### Example\n```rust\n#[cfg(features = \"some-feature\")]\nfn conditional() { }\n```\n\nUse instead:\n```rust\n#[cfg(feature = \"some-feature\")]\nfn conditional() { }\n```",
"docs": "\n### What it does\nChecks for `#[cfg(features = \"...\")]` and suggests to replace it with\n`#[cfg(feature = \"...\")]`.\n\n### Why is this bad?\nMisspelling `feature` as `features` can be sometimes hard to spot. It\nmay cause conditional compilation not work quietly.\n\n### Example\n```rust\n#[cfg(features = \"some-feature\")]\nfn conditional() { }\n```\n\nUse instead:\n```rust\n#[cfg(feature = \"some-feature\")]\nfn conditional() { }\n```",
"version": "1.69.0",
"applicability": {
"is_multi_part_suggestion": false,
Expand Down Expand Up @@ -9428,7 +9428,7 @@
},
"group": "complexity",
"level": "warn",
"docs": "\n### What it does\nSuggest removing the use of a may (or map_err) method when an Option or Result is being construted.\n\n### Why is this bad?\nIt introduces unnecessary complexity. In this case the function can be used directly and\nconstruct the Option or Result from the output.\n\n### Example\n```rust\nSome(4).map(i32::swap_bytes);\n```\nUse instead:\n```rust\nSome(i32::swap_bytes(4));\n```",
"docs": "\n### What it does\nSuggest removing the use of a may (or map_err) method when an Option or Result is being constructed.\n\n### Why is this bad?\nIt introduces unnecessary complexity. In this case the function can be used directly and\nconstruct the Option or Result from the output.\n\n### Example\n```rust\nSome(4).map(i32::swap_bytes);\n```\nUse instead:\n```rust\nSome(i32::swap_bytes(4));\n```",
"version": "1.73.0",
"applicability": {
"is_multi_part_suggestion": false,
Expand Down

0 comments on commit 0587a12

Please sign in to comment.