fix build
Some checks are pending
CI / testing (macos-latest) (push) Waiting to run
CI / testing (ubuntu-latest) (push) Waiting to run
CI / testing (windows-latest) (push) Waiting to run
CI / linting (macos-latest) (push) Waiting to run
CI / linting (ubuntu-latest) (push) Waiting to run
CI / linting (windows-latest) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / coverage (ubuntu-latest) (push) Waiting to run

This commit is contained in:
Joeri Exelmans 2025-11-04 10:51:34 +01:00
parent b6f705eb01
commit ac53538207

View file

@ -33,7 +33,7 @@ impl<T: Clone> InterpolationMethod<T> for Constant {
/// If the signal does not have a value at a given point, a fixed value is returned /// If the signal does not have a value at a given point, a fixed value is returned
pub struct DefaultFalse; pub struct DefaultFalse;
impl InterpolationMethod<Bool> for DefaultFalse { impl<Bool> InterpolationMethod<Bool> for DefaultFalse {
fn at(a: &Sample<Bool>, b: &Sample<Bool>, time: Duration) -> Option<Bool> { fn at(a: &Sample<Bool>, b: &Sample<Bool>, time: Duration) -> Option<Bool> {
if time == b.time { if time == b.time {
Some(b.value.clone()) Some(b.value.clone())