chore: run linter and fix formatting
This commit is contained in:
parent
3b3a7ce15e
commit
73921db5f9
7 changed files with 8 additions and 6 deletions
|
|
@ -9,7 +9,7 @@ itertools = "0.10.5"
|
|||
paste = "1.0.12"
|
||||
num-traits = "0.2.15"
|
||||
thiserror = "1.0.39"
|
||||
proptest = { version = "1.1.0", optional = true }
|
||||
proptest = { version = "1.1", optional = true }
|
||||
enum_dispatch = "0.3.11"
|
||||
argus-derive = { version = "0.1.0", path = "../argus-derive" }
|
||||
|
||||
|
|
|
|||
|
|
@ -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::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -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<_>>()
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue