MouseButtons.count takes an immutable ref
@@ -234,7 +234,7 @@ impl MouseButtons {
/// Count the number of pressed buttons in the set.
#[inline]
- pub fn count(&mut self) -> u32 {
+ pub fn count(&self) -> u32 {
self.0.count_ones()
}
}
