If function f1 is unused, and f2 is only called from f1, Rust complains that both f1 and f2 are unused.
I find this confusing: it's useful to know that I can remove both functions, but removing f2 alone gives a compile error.
Not sure what the best tradeoff is though.
miniblog.
Related Posts
It's well known that certain compiler optimisations matter way more than others (e.g. inlining).
Is there a similar principle for linters? I find red squiggles under unused/undefined variables the single most useful check.
Purgecss is a really cool tool for removing unused CSS based on an analysis of your HTML. For example, unused classes.
https://www.purgecss.com/
This gives CSS libraries much more scope to add features without hurting bundle size!
Coveralls (and other coverage sites e.g. Jenkins) are great. Knowing which code is untested helps find bugs and unused code.