From 4bd008f6b70a56071f5abd79d4c9256d7b41805a Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Tue, 4 Jan 2022 09:26:59 +0000 Subject: [PATCH] add 'must_use' attributes to method returning 'Self' --- src/fan.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fan.rs b/src/fan.rs index 36c9e008..c0fca10b 100644 --- a/src/fan.rs +++ b/src/fan.rs @@ -219,6 +219,7 @@ pub struct FanCurve { impl FanCurve { /// Adds a point to the fan curve + #[must_use] pub fn append(mut self, temp: i16, duty: u16) -> Self { self.points.push(FanPoint::new(temp, duty)); self