Skip to content

Commit 2acee72

Browse files
authored
Fix version number in the exported .ahap files (#39)
1 parent eccdf03 commit 2acee72

File tree

1 file changed

+4
-2
lines changed
  • core/datamodel/src/ios

1 file changed

+4
-2
lines changed

core/datamodel/src/ios/v1.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ impl Ahap {
3939

4040
/// Splits AHAP data into two AHAPs with continuous and transient events respectively
4141
pub fn into_continuous_and_transients_ahaps(self) -> (Ahap, Option<Ahap>) {
42-
let mut ahap_transients = Ahap::default();
43-
let mut ahap_continuous = Ahap::default();
42+
let ahap_version = 1.0;
43+
44+
let mut ahap_transients = Ahap { version: ahap_version, ..Default::default() };
45+
let mut ahap_continuous = Ahap { version: ahap_version, ..Default::default() };
4446

4547
for pattern in self.pattern {
4648
match pattern {

0 commit comments

Comments
 (0)