We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd5db3 commit 86e88daCopy full SHA for 86e88da
clippy_lints/src/partial_pub_fields.rs
@@ -18,17 +18,17 @@ declare_clippy_lint! {
18
/// ### Example
19
/// ```rust
20
/// pub struct Color {
21
- /// pub r,
22
- /// pub g,
23
- /// b,
+ /// pub r: u8,
+ /// pub g: u8,
+ /// b: u8,
24
/// }
25
/// ```
26
/// Use instead:
27
28
29
30
31
- /// pub b,
+ /// pub b: u8,
32
33
34
#[clippy::version = "1.66.0"]
0 commit comments