Skip to content

Commit baf6f17

Browse files
authored
Fix Into< > type for TableCollection::add_individual_* (#142)
1 parent 689938e commit baf6f17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/table_collection.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -202,21 +202,21 @@ impl TableCollection {
202202
}
203203

204204
/// Add a row to the individual table
205-
pub fn add_individual<N: Into<NodeId>>(
205+
pub fn add_individual<I: Into<IndividualId>>(
206206
&mut self,
207207
flags: tsk_flags_t,
208208
location: &[f64],
209-
parents: &[N],
209+
parents: &[I],
210210
) -> Result<IndividualId, TskitError> {
211211
self.add_individual_with_metadata(flags, location, parents, None)
212212
}
213213

214214
/// Add a row with metadata to the individual table
215-
pub fn add_individual_with_metadata<N: Into<NodeId>>(
215+
pub fn add_individual_with_metadata<I: Into<IndividualId>>(
216216
&mut self,
217217
flags: tsk_flags_t,
218218
location: &[f64],
219-
parents: &[N],
219+
parents: &[I],
220220
metadata: Option<&dyn MetadataRoundtrip>,
221221
) -> Result<IndividualId, TskitError> {
222222
let md = EncodedMetadata::new(metadata)?;

0 commit comments

Comments
 (0)