add some inline's

This commit is contained in:
Gered 2022-07-10 15:15:59 -04:00
parent 881fe1d2fd
commit e8cbe1debe

View file

@ -48,10 +48,12 @@ impl<EventType, ContextType> EventListeners<EventType, ContextType> {
}
}
#[inline]
pub fn len(&self) -> usize {
self.listeners.len()
}
#[inline]
pub fn clear(&mut self) {
self.listeners.clear();
}