This commit is contained in:
Erica Z 2024-10-30 08:52:48 +01:00
parent bb097cd3d5
commit 66467ee8af

View file

@ -43,7 +43,7 @@ impl Handle {
Error::from_return_code(unsafe { ffi::mpv_initialize(self.0.as_ptr()) })
}
pub fn wait_event<'a>(&'a mut self, timeout: f64) -> Option<Event<'a>> {
pub fn wait_event(&mut self, timeout: f64) -> Option<Event<'_>> {
let event = unsafe { &*ffi::mpv_wait_event(self.0.as_ptr(), timeout) };
match event.event_id {
0 => None,