]> git.lizzy.rs Git - rust.git/commit
Ignore new-without-default lint when `new` method has generic types
authorscott-linder <scott.b.linder@wmich.edu>
Wed, 14 Jun 2017 16:50:19 +0000 (12:50 -0400)
committerscott-linder <scott.b.linder@wmich.edu>
Wed, 14 Jun 2017 16:58:22 +0000 (12:58 -0400)
commit1ce3cbf9c43040b63e01f67131b2d30c0ab204d3
tree766314e9a49273f687f895f250ca23e78ee1776a
parent705601833531ad06d220b856e8f66edc55018928
Ignore new-without-default lint when `new` method has generic types

There may be no sensible `Default` impl if the result of `new` depends
on a type parameter.
clippy_lints/src/new_without_default.rs
clippy_tests/examples/new_without_default.rs