diff --git a/autd3-driver/src/datagram/gain/group.rs b/autd3-driver/src/datagram/gain/group.rs index 5d049a5f..a03ce1ed 100644 --- a/autd3-driver/src/datagram/gain/group.rs +++ b/autd3-driver/src/datagram/gain/group.rs @@ -23,11 +23,12 @@ pub trait GroupExec { type FK: Fn(&Transducer) -> Option; type F: Fn(&Device) -> Self::FK; + #[allow(clippy::type_complexity)] fn exec( gain_map: HashMap Drive + Send + Sync>>>, f: &Self::F, geometry: &Geometry, - result: &Vec>, + result: &[Vec], ) -> Result<(), AUTDInternalError>; } @@ -54,7 +55,7 @@ where gain_map: HashMap Drive + Send + Sync>>>, f: &F, geometry: &Geometry, - result: &Vec>, + result: &[Vec], ) -> Result<(), AUTDInternalError> { gain_map .iter() @@ -105,7 +106,7 @@ where gain_map: HashMap Drive + Send + Sync>>>, f: &F, geometry: &Geometry, - result: &Vec>, + result: &[Vec], ) -> Result<(), AUTDInternalError> { gain_map.par_iter().try_for_each(|(k, g)| { geometry