feat: add #[must_use] to all functions

This commit is contained in:
2026-02-15 12:19:53 +01:00
parent 52f9d944e9
commit 2f956031a6
11 changed files with 33 additions and 0 deletions
+3
View File
@@ -1,17 +1,20 @@
/// <https://easings.net/#easeInCubic>
#[inline]
#[must_use]
pub fn cubic_in(t: f32) -> f32 {
t * t * t
}
/// <https://easings.net/#easeOutCubic>
#[inline]
#[must_use]
pub fn cubic_out(t: f32) -> f32 {
1.0 - (1.0 - t).powi(3)
}
/// <https://easings.net/#easeInOutCubic>
#[inline]
#[must_use]
pub fn cubic_in_out(t: f32) -> f32 {
if t < 0.5 {
4.0 * t * t * t