diff options
| author | Icxolu <10486322+Icxolu@users.noreply.github.com> | 2023-04-25 20:44:09 +0200 |
|---|---|---|
| committer | Icxolu <10486322+Icxolu@users.noreply.github.com> | 2023-04-26 21:12:59 +0200 |
| commit | 9428138562bad89fc2d7d011fe276cd198e6155a (patch) | |
| tree | fd779117f0f590547ebf7a0d5f0ad5ee552aaa96 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 990bbdc2bee264291843497cebe59f307c2ed86f (diff) | |
| download | rust-9428138562bad89fc2d7d011fe276cd198e6155a.tar.gz rust-9428138562bad89fc2d7d011fe276cd198e6155a.zip | |
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.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
