smartcore icon indicating copy to clipboard operation
smartcore copied to clipboard

Use Default::default instead of new in traits

Open morenol opened this issue 1 year ago • 2 comments

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?

morenol avatar Nov 04 '22 15:11 morenol