File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ declare_clippy_lint! {
18
18
/// ### Example
19
19
/// ```rust
20
20
/// pub struct Color {
21
- /// pub r,
22
- /// pub g,
23
- /// b,
21
+ /// pub r: u8 ,
22
+ /// pub g: u8 ,
23
+ /// b: u8 ,
24
24
/// }
25
25
/// ```
26
26
/// Use instead:
27
27
/// ```rust
28
28
/// pub struct Color {
29
- /// pub r,
30
- /// pub g,
31
- /// pub b,
29
+ /// pub r: u8 ,
30
+ /// pub g: u8 ,
31
+ /// pub b: u8 ,
32
32
/// }
33
33
/// ```
34
34
#[ clippy:: version = "1.66.0" ]
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ interior invariants and expose intentionally limited API to the outside world.
12
12
### Example
13
13
```
14
14
pub struct Color {
15
- pub r,
16
- pub g,
17
- b,
15
+ pub r: u8 ,
16
+ pub g: u8 ,
17
+ b: u8 ,
18
18
}
19
19
```
20
20
Use instead:
21
21
```
22
22
pub struct Color {
23
- pub r,
24
- pub g,
25
- pub b,
23
+ pub r: u8 ,
24
+ pub g: u8 ,
25
+ pub b: u8 ,
26
26
}
27
27
```
You can’t perform that action at this time.
0 commit comments