3 ms·
actually the higher versions of rust actually do need these refactors way less often since more lifetimes can be elided and when using generic code or impl trai
by merb 2y ago
actually the higher versions of rust actually do need these refactors way less often since more lifetimes can be elided and when using generic code or impl traits you can basically scrap a ton of it.
I still sometimes stumble upon the first example tough but most often it happens because I want to encapsulate everything inside the function instead of doing some work outside of it.