Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Jul 20, 2024
1 parent 03691e9 commit 83df039
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autd3-driver/src/datagram/gain/group.rs
Original file line number Diff line number Diff line change
@@ -23,11 +23,12 @@ pub trait GroupExec {
type FK: Fn(&Transducer) -> Option<Self::K>;
type F: Fn(&Device) -> Self::FK;

#[allow(clippy::type_complexity)]
fn exec(
gain_map: HashMap<Self::K, Vec<Box<dyn Fn(&Transducer) -> Drive + Send + Sync>>>,
f: &Self::F,
geometry: &Geometry,
result: &Vec<Vec<Drive>>,
result: &[Vec<Drive>],
) -> Result<(), AUTDInternalError>;
}

@@ -54,7 +55,7 @@ where
gain_map: HashMap<K, Vec<Box<dyn Fn(&Transducer) -> Drive + Send + Sync>>>,
f: &F,
geometry: &Geometry,
result: &Vec<Vec<Drive>>,
result: &[Vec<Drive>],
) -> Result<(), AUTDInternalError> {
gain_map
.iter()
@@ -105,7 +106,7 @@ where
gain_map: HashMap<K, Vec<Box<dyn Fn(&Transducer) -> Drive + Send + Sync>>>,
f: &F,
geometry: &Geometry,
result: &Vec<Vec<Drive>>,
result: &[Vec<Drive>],
) -> Result<(), AUTDInternalError> {
gain_map.par_iter().try_for_each(|(k, g)| {
geometry

0 comments on commit 83df039

Please sign in to comment.