feat: add #[must_use] to all functions

This commit is contained in:
2026-02-15 12:19:53 +01:00
parent 303028dc10
commit b4f5d73cbd
11 changed files with 33 additions and 0 deletions
+3
View File
@@ -5,6 +5,7 @@ const C5: f32 = (2.0 * PI) / 4.5;
/// <https://easings.net/#easeInElastic>
#[inline]
#[must_use]
pub fn elastic_in(t: f32) -> f32 {
if t <= 0.0 {
0.0
@@ -17,6 +18,7 @@ pub fn elastic_in(t: f32) -> f32 {
/// <https://easings.net/#easeOutElastic>
#[inline]
#[must_use]
pub fn elastic_out(t: f32) -> f32 {
if t <= 0.0 {
0.0
@@ -29,6 +31,7 @@ pub fn elastic_out(t: f32) -> f32 {
/// <https://easings.net/#easeInOutElastic>
#[inline]
#[must_use]
pub fn elastic_in_out(t: f32) -> f32 {
if t <= 0.0 {
0.0