smithay icon indicating copy to clipboard operation
smithay copied to clipboard

Mark constant functions with const

Open julianbraha opened this issue 5 months ago • 3 comments

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

julianbraha avatar Aug 30 '24 23:08 julianbraha