feat(derive) fields derive visibility from original struct - #27
Conversation
They weren't triggering because the fields were all public and the type was public, so in a library it meant that they could be used by users of the library. Now that we've made them private (inaccessible to users of the library), the linter can see that the fields are never accessed here in the library and they cannot be accessed from the outside. Hence, they are not unused and could be removed. We should add |
I've tried adding expect or allow on the structs and on all fields and errors persist. I think its from the -D warnings in clippy, we can add -A dead_code to allow dead code warnings but i dont know any other solution |
Try adding the EDIT: Actually no wait: it's best if we just add |
Fields now derive the visibility from original structs, instead of just pub.