add some inline's
This commit is contained in:
parent
881fe1d2fd
commit
e8cbe1debe
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue