mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-04-15 21:46:37 +00:00
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:
parent
e9b340d4d0
commit
9a43938e11
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user