Skip to content

Commit

Permalink
Merge pull request #245 from rruckley/bug-tmf633-addchar-244
Browse files Browse the repository at this point in the history
Fix: TMF633 use vec_insert() for add_char()
  • Loading branch information
rruckley authored Feb 11, 2025
2 parents cf563d4 + 18dc4c6 commit 0d72492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tmflib"
version = "0.1.27"
version = "0.1.28"
edition = "2021"
authors = ["Ryan Ruckley <[email protected]>"]
description = "Interface library for processing TMF payloads"
Expand Down
4 changes: 2 additions & 2 deletions src/tmf633/service_specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use serde::{Deserialize,Serialize};

use crate::{HasId,HasName,HasLastUpdate,HasDescription, TimePeriod};
use crate::{HasId,HasName,HasLastUpdate,HasDescription, TimePeriod,vec_insert};
use crate::common::related_party::RelatedParty;
use tmflib_derive::{HasId,HasName,HasLastUpdate,HasDescription};

Expand Down Expand Up @@ -72,7 +72,7 @@ impl ServiceSpecification {

/// Add a characteristic to this service specification
pub fn add_char(&mut self, characteristic : CharacteristicSpecification) {
self.spec_characteristics.as_mut().unwrap().push(characteristic);
vec_insert(&mut self.spec_characteristics,characteristic);
}
}

Expand Down

0 comments on commit 0d72492

Please sign in to comment.