Closed waywardmonkeys closed 2 months ago
Looking at the template it might be easier to add It might be easier to add #[allow(clippy::let_and_return)]
here.
I just updated the template and thought about the same thing ... but tried this as well. What do you think?
That works as well :)
I had also tried just doing unsafe { ... } & 0x7
but that didn't looked bad to me in the generated re-formatted code.
And the reason this didn't get picked up by CI is that clippy is just run on the ubuntu build, not all platforms / configs.
Ah, I was wondering. I should do something about that.
This one is generated so you'll need to update the template and rerun codegen, or I can do it if you prefer.