chore: satisfy clippy::manual_is_power_of_two

This only fires with Rust 1.83 or newer, but we can preempt this case
with our current MSRV.
This commit is contained in:
Erich Gubler 2024-11-24 15:05:22 -05:00
parent e9b340d4d0
commit 9a43938e11

View File

@ -1606,7 +1606,7 @@ impl FormatAspects {
/// Returns `true` if only one flag is set
pub fn is_one(&self) -> bool {
self.bits().count_ones() == 1
self.bits().is_power_of_two()
}
pub fn map(&self) -> wgt::TextureAspect {