File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ declare_clippy_lint! {
9
9
/// any field.
10
10
///
11
11
/// ### Why is this bad?
12
- /// Readibility suffers from unnecessary struct building.
12
+ /// Readability suffers from unnecessary struct building.
13
13
///
14
14
/// ### Example
15
15
/// ```rust
@@ -25,9 +25,13 @@ declare_clippy_lint! {
25
25
/// let a = S { s: String::from("Hello, world!") };
26
26
/// let b = a;
27
27
/// ```
28
+ ///
29
+ /// ### Known Problems
30
+ /// Has false positives when the base is a place expression that cannot be
31
+ /// moved out of, see [#10547](https://github.com/rust-lang/rust-clippy/issues/10547).
28
32
#[ clippy:: version = "1.70.0" ]
29
33
pub UNNECESSARY_STRUCT_INITIALIZATION ,
30
- complexity ,
34
+ nursery ,
31
35
"struct built from a base that can be written mode concisely"
32
36
}
33
37
declare_lint_pass ! ( UnnecessaryStruct => [ UNNECESSARY_STRUCT_INITIALIZATION ] ) ;
You can’t perform that action at this time.
0 commit comments