summaryrefslogtreecommitdiff
path: root/alligator_render/src/texture.rs
diff options
context:
space:
mode:
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))
}