From 0653c41f12a6e5bed35723b401c5b4d9505059bf Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 22 Sep 2026 14:40:53 +0200 Subject: refactor(opengl-bindings): fix clippy lints --- opengl-bindings/src/shader.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opengl-bindings/src/shader.rs') diff --git a/opengl-bindings/src/shader.rs b/opengl-bindings/src/shader.rs index e3df35c..9d7d674 100644 --- a/opengl-bindings/src/shader.rs +++ b/opengl-bindings/src/shader.rs @@ -227,11 +227,13 @@ impl Program var.set(current_context, self, location); } + #[must_use] pub fn from_raw(raw: u32) -> Self { Self { program: raw } } + #[must_use] pub fn into_raw(self) -> u32 { self.program @@ -374,6 +376,7 @@ pub struct UniformLocation(crate::sys::types::GLint); impl UniformLocation { + #[must_use] pub fn from_number(number: i32) -> Self { Self(number) -- cgit v1.2.3-18-g5258