From 9a43938e11684ecd93b10e9381762237b5323809 Mon Sep 17 00:00:00 2001
From: Erich Gubler <erichdongubler@gmail.com>
Date: Sun, 24 Nov 2024 15:05:22 -0500
Subject: [PATCH] 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.
---
 wgpu-hal/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs
index 15fa9a287..7efe6a88a 100644
--- a/wgpu-hal/src/lib.rs
+++ b/wgpu-hal/src/lib.rs
@@ -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 {