From 70c895c98dc065ddebfc5c0043aae0c83b266e6b Mon Sep 17 00:00:00 2001 From: GABRIEL Sebastian Date: Thu, 12 Nov 2026 12:33:18 +0100 Subject: [PATCH] fix warnings --- ...nitor-simulation-v0.4.3-rust-warning-fix.patch | 15 +++++++++++++++ patient-monitor-simulation/src/model.rs | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 patient-monitor-simulation-v0.4.3-rust-warning-fix.patch diff --git a/patient-monitor-simulation-v0.4.3-rust-warning-fix.patch b/patient-monitor-simulation-v0.4.3-rust-warning-fix.patch new file mode 100644 index 0000000..d9f6eda --- /dev/null +++ b/patient-monitor-simulation-v0.4.3-rust-warning-fix.patch @@ -0,0 +1,15 @@ +diff --git a/src/model.rs b/src/model.rs +index 03d7bbe..4d0bc9b 100644 +--- a/src/model.rs ++++ b/src/model.rs +@@ -231,8 +231,8 @@ impl Parameters { + } + } + +- /// No saturation without an attached sensor, usable signal quality and +- /// two observed mechanical pulse events. Thresholds do not control this alarm. ++ /// Test-only convenience wrapper for saturation availability without dropout. ++ #[cfg(test)] + pub fn spo2_status(&self, pulse_rate: Option) -> Spo2Status { + self.spo2_status_during(pulse_rate, false) + } diff --git a/patient-monitor-simulation/src/model.rs b/patient-monitor-simulation/src/model.rs index 03d7bbe..4d0bc9b 100644 --- a/patient-monitor-simulation/src/model.rs +++ b/patient-monitor-simulation/src/model.rs @@ -231,8 +231,8 @@ impl Parameters { } } - /// No saturation without an attached sensor, usable signal quality and - /// two observed mechanical pulse events. Thresholds do not control this alarm. + /// Test-only convenience wrapper for saturation availability without dropout. + #[cfg(test)] pub fn spo2_status(&self, pulse_rate: Option) -> Spo2Status { self.spo2_status_during(pulse_rate, false) }