Upgrade arrayvec to use const-generics

This commit is contained in:
2021-03-27 11:46:02 +01:00
parent 22a3464326
commit 57c897ec94
2 changed files with 3 additions and 2 deletions

View File

@@ -460,7 +460,8 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct VortexParameters {
pub vortices: ArrayVec<[Vortice; 5]>,
// The limit of 5 vortices can be bumped if needed...
pub vortices: ArrayVec<Vortice, 5>,
pub mach: Float,
}