the take_queue function was not intended to be public
This commit is contained in:
parent
b856ab2fc6
commit
881fe1d2fd
|
@ -28,7 +28,7 @@ impl<EventType> EventPublisher<EventType> {
|
||||||
self.queue.push_back(event);
|
self.queue.push_back(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn take_queue(&mut self, destination: &mut VecDeque<EventType>) {
|
fn take_queue(&mut self, destination: &mut VecDeque<EventType>) {
|
||||||
destination.clear();
|
destination.clear();
|
||||||
destination.append(&mut self.queue);
|
destination.append(&mut self.queue);
|
||||||
self.clear();
|
self.clear();
|
||||||
|
|
Loading…
Reference in a new issue