compiler/rust/bitset: Removed unused start param

Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32812>
This commit is contained in:
Mel Henning 2024-12-23 20:09:40 -05:00 committed by Marge Bot
parent 6ba317bd8c
commit 06cd3c7fa3

View file

@ -51,7 +51,7 @@ impl BitSet {
}
pub fn iter(&self) -> BitSetIter<'_> {
BitSetIter::new(self, 0)
BitSetIter::new(self)
}
pub fn get_word(&self, word: usize) -> u32 {
@ -227,11 +227,11 @@ pub struct BitSetIter<'a> {
}
impl<'a> BitSetIter<'a> {
fn new(set: &'a BitSet, start: usize) -> Self {
fn new(set: &'a BitSet) -> Self {
Self {
set,
w: start / 32,
mask: u32::MAX << (start % 32),
w: 0,
mask: u32::MAX,
}
}
}