Skip to content

Commit

Permalink
remove unstable feature from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Congyuwang committed Feb 29, 2024
1 parent 88f3fbc commit 79e4082
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/cdlist_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(get_many_mut)]
use cdlist::LinkNode;

#[test]
Expand Down Expand Up @@ -109,8 +108,8 @@ fn collect_rev<T: Copy>(node: &LinkNode<T>) -> Vec<T> {
}

fn connect_all<T>(nodes: &mut [LinkNode<T>], start: usize, end: usize) {
(start..(end - 1)).zip((start + 1)..end).for_each(|(i, j)| {
let [ni, nj] = nodes.get_many_mut([i, j]).unwrap();
ni.add(nj);
});
for i in start..(end - 1) {
let (ni, nj) = nodes[i..].split_at_mut(1);
ni[0].add(&mut nj[0])
}
}

0 comments on commit 79e4082

Please sign in to comment.