bors f9c1d155b4 Auto merge of #10716 - Icxolu:unitstruct_default_construction, r=Manishearth
Fixes #10609: Adds lint to detect construction of unit struct using `default`

Using `default` to construct a unit struct increases code complexity and adds a function call. This can be avoided by simply removing the call to `default` and simply construct by name.

changelog: [`default_constructed_unit_structs`]: detects construction of unit structs using `default`

fixes #10609
2023-05-03 21:43:02 +00:00
..
2023-04-25 05:06:45 -05:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00
2023-04-23 10:52:27 -04:00
2023-04-23 10:52:27 -04:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00
2023-04-23 12:09:36 +02:00
2023-04-23 10:52:27 -04:00
2023-04-23 10:52:27 -04:00
fix
2023-04-06 16:31:50 +02:00
fix
2023-04-06 16:31:50 +02:00
2023-04-23 10:52:27 -04:00
2023-04-25 05:06:45 -05:00
2023-04-23 10:52:27 -04:00
2023-04-23 10:52:27 -04:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00
2023-05-03 20:55:14 +02:00