We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3acfde4 commit c6305ebCopy full SHA for c6305eb
src/hl.rs
@@ -885,15 +885,13 @@ impl<'r> EventList for &'r [Event] {
885
}
886
}*/
887
888
-impl<'r, 's> EventList for &'r [Option<Ref<'s, Rc<Event>>>] {
+impl<'r, 's> EventList for &'r [Ref<'s, Rc<Event>>] {
889
fn as_event_list<T, F>(&self, f: F) -> T
890
where F: FnOnce(*const cl_event, cl_uint) -> T
891
{
892
let mut vec: Vec<cl_event> = Vec::with_capacity(self.len());
893
for item in self.iter() {
894
- if let Some(ref item) = *item {
895
- vec.push(item.event);
896
- }
+ vec.push(item.event);
897
898
899
f(vec.as_ptr(), vec.len() as cl_uint)
0 commit comments