fix warnings
This commit is contained in:
parent
d4162c49e8
commit
70c895c98d
2 changed files with 17 additions and 2 deletions
15
patient-monitor-simulation-v0.4.3-rust-warning-fix.patch
Normal file
15
patient-monitor-simulation-v0.4.3-rust-warning-fix.patch
Normal file
|
|
@ -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<i32>) -> Spo2Status {
|
||||||
|
self.spo2_status_during(pulse_rate, false)
|
||||||
|
}
|
||||||
|
|
@ -231,8 +231,8 @@ impl Parameters {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// No saturation without an attached sensor, usable signal quality and
|
/// Test-only convenience wrapper for saturation availability without dropout.
|
||||||
/// two observed mechanical pulse events. Thresholds do not control this alarm.
|
#[cfg(test)]
|
||||||
pub fn spo2_status(&self, pulse_rate: Option<i32>) -> Spo2Status {
|
pub fn spo2_status(&self, pulse_rate: Option<i32>) -> Spo2Status {
|
||||||
self.spo2_status_during(pulse_rate, false)
|
self.spo2_status_during(pulse_rate, false)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue