rust-lang/rust-clippy
Ver no GitHublint usage of struct constructors when new/from method is available
Open
#1.216 aberto em 5 de set. de 2016
A-lintL-styleT-middlegood first issue
Métricas do repositório
- Stars
- (10.406 stars)
- Métricas de merge de PR
- (Mesclagem média 19d 22h) (113 fundiu PRs em 30d)
Description
if a struct has a new or a from method that does the same as a struct constructor, then that method should be used instead of the struct constructor.
Obviously the usage of a struct constructor inside the new or from method should not be linted.