Use extend() rather than extend_from_slice() in constellation.

This commit is contained in:
Ms2ger 2016-09-09 11:43:57 +02:00
parent 957893bdc2
commit 8ffa577df4

View file

@ -2203,7 +2203,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
continue;
}
};
evicted_pipelines.extend_from_slice(&frame.remove_forward_entries());
evicted_pipelines.extend(frame.remove_forward_entries());
for entry in frame.next.iter().chain(frame.prev.iter()).chain(once(&frame.current)) {
let pipeline = match self.pipelines.get(&entry.pipeline_id) {
Some(pipeline) => pipeline,