Fix incorrect consistency check for auth_fragment construction.

This was just entirely wrong; it will often be the case that we've
observed several altitudes but have an empty list of values within
a particular fragment.
This commit is contained in:
Kris Nuttycombe 2022-03-11 15:09:46 -07:00
parent 8ef73e0b29
commit f8703a2eab
1 changed files with 0 additions and 1 deletions

View File

@ -374,7 +374,6 @@ impl<A> AuthFragment<A> {
/// perform any meaningful validation that the provided values
/// are valid.
pub fn from_parts(position: Position, altitudes_observed: usize, values: Vec<A>) -> Self {
assert!(altitudes_observed <= values.len());
Self {
position,
altitudes_observed,