Skip to content

Commit 77b5b47

Browse files
authored
refactor!: TableCollection::simplify now takes &[NodeId] (#485)
Previous implementation took &[N] where N: Into<NodeId>, which was unsound in this case.
1 parent 541f516 commit 77b5b47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/table_collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,9 @@ impl TableCollection {
763763
/// in length to the input node table. For each input node,
764764
/// this vector either contains the node's new index or [`NodeId::NULL`]
765765
/// if the input node is not part of the simplified history.
766-
pub fn simplify<N: Into<NodeId>, O: Into<SimplificationOptions>>(
766+
pub fn simplify<O: Into<SimplificationOptions>>(
767767
&mut self,
768-
samples: &[N],
768+
samples: &[NodeId],
769769
options: O,
770770
idmap: bool,
771771
) -> Result<Option<&[NodeId]>, TskitError> {

0 commit comments

Comments
 (0)