1
0
Fork 0
forked from wry/wry

wp-color-management-v1: allocate description ids linearly

This commit is contained in:
Julian Orth 2025-04-22 16:13:49 +02:00
parent 401e8bb0be
commit c9b0e86bf5
6 changed files with 10 additions and 30 deletions

View file

@ -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>,