the take_queue function was not intended to be public

This commit is contained in:
Gered 2022-07-10 15:14:09 -04:00
parent b856ab2fc6
commit 881fe1d2fd

View file

@ -28,7 +28,7 @@ impl<EventType> EventPublisher<EventType> {
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.append(&mut self.queue);
self.clear();