Skip to content

Commit 8bf7d4b

Browse files
authored
NodeTable::metadata now uses Into<NodeId>. (#134)
Missed this in #129
1 parent 3ac3d50 commit 8bf7d4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ impl<'a> NodeTable<'a> {
141141
unsafe_tsk_column_access!(row.into().0, 0, self.num_rows(), self.table_.individual)
142142
}
143143

144-
pub fn metadata<T: metadata::MetadataRoundtrip>(
144+
pub fn metadata<N: Into<crate::NodeId>, T: metadata::MetadataRoundtrip>(
145145
&'a self,
146-
row: tsk_id_t,
146+
row: N,
147147
) -> Result<Option<T>, TskitError> {
148-
let buffer = metadata_to_vector!(self, row)?;
148+
let buffer = metadata_to_vector!(self, row.into().0)?;
149149
decode_metadata_row!(T, buffer)
150150
}
151151

0 commit comments

Comments
 (0)