smithay
smithay copied to clipboard
Mark constant functions with const
Using const
for constant functions allows the compiler to evaluate them at compile-time, and allows the calling functions to be const
, too.
These functions were detected with the clippy lint: https://rust-lang.github.io/rust-clippy/master/index.html#/missing_const_for_fn