wp-color-management-v1: allocate description ids linearly
This commit is contained in:
parent
401e8bb0be
commit
c9b0e86bf5
6 changed files with 10 additions and 30 deletions
|
|
@ -41,6 +41,7 @@ impl<T, const N: usize> FreeList<T, N> {
|
|||
unsafe { self.levels.get().deref_mut() }
|
||||
}
|
||||
|
||||
#[cfg_attr(not(test), expect(dead_code))]
|
||||
pub fn release(&self, n: T)
|
||||
where
|
||||
T: Into<u32>,
|
||||
|
|
@ -58,6 +59,7 @@ impl<T, const N: usize> FreeList<T, N> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(not(test), expect(dead_code))]
|
||||
pub fn acquire(&self) -> T
|
||||
where
|
||||
u32: Into<T>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue