Skip to content

Commit

Permalink
fix: Update to use vec_insert()
Browse files Browse the repository at this point in the history
  • Loading branch information
rruckley committed Feb 11, 2025
1 parent b5c81aa commit 18dc4c6
Showing 1 changed file with 2 additions and 2 deletions.
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 18dc4c6

Please sign in to comment.