smartcore
smartcore copied to clipboard
Use Default::default instead of new in traits
I'm submitting a
- [x] improvement.
Current Behaviour:
Currently, traits in https://github.com/smartcorelib/smartcore/blob/development/src/api.rs#L24 requires implementation of fn new() -> Self;
, I think that instead we should rely on Default::default,
Do you want to work on this issue?
Yes
Any thoughts?