File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl EarlyLintPass for FieldScopedVisibilityModifiers {
68
68
field. vis . span ,
69
69
"scoped visibility modifier on a field" ,
70
70
None ,
71
- "consider making the field private and adding a scoped visibility method to read it" ,
71
+ "consider making the field private and adding a scoped visibility method for it" ,
72
72
) ;
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: scoped visibility modifier on a field
4
4
LL | pub(crate) pub_crate_field: bool,
5
5
| ^^^^^^^^^^
6
6
|
7
- = help: consider making the field private and adding a scoped visibility method to read it
7
+ = help: consider making the field private and adding a scoped visibility method for it
8
8
= note: `-D clippy::field-scoped-visibility-modifiers` implied by `-D warnings`
9
9
= help: to override `-D warnings` add `#[allow(clippy::field_scoped_visibility_modifiers)]`
10
10
@@ -14,15 +14,15 @@ error: scoped visibility modifier on a field
14
14
LL | pub(in crate::pub_module) pub_in_path_field: bool,
15
15
| ^^^^^^^^^^^^^^^^^^^^^^^^^
16
16
|
17
- = help: consider making the field private and adding a scoped visibility method to read it
17
+ = help: consider making the field private and adding a scoped visibility method for it
18
18
19
19
error: scoped visibility modifier on a field
20
20
--> tests/ui/field_scoped_visibility_modifiers.rs:11:9
21
21
|
22
22
LL | pub(super) pub_super_field: bool,
23
23
| ^^^^^^^^^^
24
24
|
25
- = help: consider making the field private and adding a scoped visibility method to read it
25
+ = help: consider making the field private and adding a scoped visibility method for it
26
26
27
27
error: aborting due to 3 previous errors
28
28
You can’t perform that action at this time.
0 commit comments