about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorIcxolu <10486322+Icxolu@users.noreply.github.com>2023-04-25 20:44:09 +0200
committerIcxolu <10486322+Icxolu@users.noreply.github.com>2023-04-26 21:12:59 +0200
commit9428138562bad89fc2d7d011fe276cd198e6155a (patch)
treefd779117f0f590547ebf7a0d5f0ad5ee552aaa96 /tests/rustdoc-js-std/parser-errors.js
parent990bbdc2bee264291843497cebe59f307c2ed86f (diff)
downloadrust-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