Closed Luro02 closed 3 years ago
This will most likely have no performance improvements, but clippy will stop complaining about the functions not being constant.
Eh, i didn't event know clippy had a lint like that :smile:
Eh, i didn't event know clippy had a lint like that 😄
By default clippy does not show all lints. You can enable a lot more by adding this to the top of lib.rs
:
#![warn(clippy::pedantic, clippy::nursery)]
Looking at the changes, i was wondering what would be the effect of making these function
const
? (as they are private)I suppose maybe some inlining and const-propagation stuff, but i'm not sure.