I have a crate with main.rs and types.rs. types.rs is used as mod types;
in main.rs.
I'm designing types.rs as a library which contains functions/fields that may not be used by main.rs, but the compiler gives me uncountable warnings about something "is never used".
What is the correct solution here?