Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: c41be9e
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Sep 5, 2024
1 parent b4ab0a1 commit 2d71156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2760,7 +2760,7 @@
"level": "warn",
"docs": "### What it does\nChecks for manual implementations of the non-exhaustive pattern.\n\n### Why is this bad?\nUsing the #[non_exhaustive] attribute expresses better the intent\nand allows possible optimizations when applied to enums.\n\n### Example\n```rust\nstruct S {\n pub a: i32,\n pub b: i32,\n _c: (),\n}\n\nenum E {\n A,\n B,\n #[doc(hidden)]\n _C,\n}\n\nstruct T(pub i32, pub i32, ());\n```\nUse instead:\n```rust\n#[non_exhaustive]\nstruct S {\n pub a: i32,\n pub b: i32,\n}\n\n#[non_exhaustive]\nenum E {\n A,\n B,\n}\n\n#[non_exhaustive]\nstruct T(pub i32, pub i32);\n```\n\n### Configuration\n\n- `msrv`: The minimum rust version that the project supports. Defaults to the `rust-version` field in `Cargo.toml`\n\n\n (default: `current version`)\n",
"version": "1.45.0",
"applicability": "Unspecified"
"applicability": "MaybeIncorrect"
},
{
"id": "manual_ok_or",
Expand Down

0 comments on commit 2d71156

Please sign in to comment.