chore: run linter and fix formatting

This commit is contained in:
Anand Balakrishnan 2023-08-30 16:02:03 -07:00
parent 3b3a7ce15e
commit 73921db5f9
7 changed files with 8 additions and 6 deletions

View file

@ -358,6 +358,8 @@ impl ExprBuilder {
#[cfg(any(test, feature = "arbitrary"))]
pub mod arbitrary {
#![allow(clippy::arc_with_non_send_sync)]
//! Helper functions to generate arbitrary expressions using [`mod@proptest`].
use proptest::prelude::*;

View file

@ -448,7 +448,7 @@ pub mod arbitrary {
ts.dedup();
ts.into_iter()
.map(Duration::from_secs)
.zip(values.clone().into_iter())
.zip(values.clone())
.collect::<Vec<_>>()
})
})

View file

@ -34,7 +34,7 @@ impl<T> Signal<T> {
match self {
Empty => Signal::Empty,
Constant { value } => Signal::constant(op(value)),
Sampled { values, time_points } => zip(time_points.into_iter(), values.into_iter().map(op)).collect(),
Sampled { values, time_points } => zip(time_points, values.into_iter().map(op)).collect(),
}
}