Lint
This commit is contained in:
1 parent
aa1bfb768e
commit
20a1db073d
20 files changed
+118
-126
No files matched your search
+1
-1
@@ -37,7 +37,7 @@ impl BatchBuilder {
|
||||
|
||||
/// Tries to assign a texture to the batch.
|
||||
///
|
||||
/// Returns slot_index into textures array if texture can be assigned.
|
||||
/// Returns `slot_index` into textures array if texture can be assigned.
|
||||
/// Returns `None` if maximum amount of texture slots is reached.
|
||||
fn try_assign(&mut self, id: TextureId, max_slots: NonZeroU32) -> Option<u32> {
|
||||
if let Some(&slot) = self.texture_mapping.get(&id) {
|
||||
|
||||
Reference in new issue
Block a user