summaryrefslogtreecommitdiff
path: root/alligator_render/src/texture.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-10-20 23:00:17 -0400
committerMicha White <botahamec@outlook.com>2022-10-20 23:00:17 -0400
commit09df670b8e45a3ffe2853773e648b80b6b6d6254 (patch)
tree90c8dd436b6162ae86d4505d8cf45ba479c3516b /alligator_render/src/texture.rs
parenteb3ced51f90260e3057bb782373cd8ce887d3562 (diff)
Added a bunnymark
Diffstat (limited to 'alligator_render/src/texture.rs')
-rw-r--r--alligator_render/src/texture.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/alligator_render/src/texture.rs b/alligator_render/src/texture.rs
index e343508..0eacb5b 100644
--- a/alligator_render/src/texture.rs
+++ b/alligator_render/src/texture.rs
@@ -19,6 +19,7 @@ pub struct TextureId(usize);
impl TextureId {
#[allow(clippy::new_without_default)]
+ #[must_use]
pub fn new() -> Self {
Self(NEXT_TEXTURE_ID.fetch_add(1, Ordering::Relaxed))
}