Skip to content

Commit

Permalink
demo: use FixedBitSet::insert and remove
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 27, 2024
1 parent c1527ed commit b2d29d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rayon-demo/src/tsp/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ impl NodeSet {
}

pub fn insert(&mut self, node: Node) {
self.bits.set(node.index, true);
self.bits.insert(node.index);
}

pub fn remove(&mut self, node: Node) {
self.bits.set(node.index, false);
self.bits.remove(node.index);
}
}

0 comments on commit b2d29d4

Please sign in to comment.