File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ declare_clippy_lint! {
99 /// any field.
1010 ///
1111 /// ### Why is this bad?
12- /// Readibility suffers from unnecessary struct building.
12+ /// Readability suffers from unnecessary struct building.
1313 ///
1414 /// ### Example
1515 /// ```rust
@@ -25,9 +25,13 @@ declare_clippy_lint! {
2525 /// let a = S { s: String::from("Hello, world!") };
2626 /// let b = a;
2727 /// ```
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).
2832 #[ clippy:: version = "1.70.0" ]
2933 pub UNNECESSARY_STRUCT_INITIALIZATION ,
30- complexity ,
34+ nursery ,
3135 "struct built from a base that can be written mode concisely"
3236}
3337declare_lint_pass ! ( UnnecessaryStruct => [ UNNECESSARY_STRUCT_INITIALIZATION ] ) ;
You can’t perform that action at this time.
0 commit comments