Closed adamnemecek closed 1 year ago
Is there any benefit to using Self instead of the struct name? Or is it just a matter of convention?
Self
Also the same question for vec![] vs Vec::new().
vec![]
Vec::new()
It's more idiomatic. Also you already use Self:: instead of the struct name in several places so this unifies it.
The changes seem to make the build fail. Can you check it out?
Done.
Is there any benefit to using
Self
instead of the struct name? Or is it just a matter of convention?Also the same question for
vec![]
vsVec::new()
.