mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
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:
parent
6ba317bd8c
commit
06cd3c7fa3
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue