Skip to content

Commit 3798f9c

Browse files
committed
It builds!
1 parent 8c86202 commit 3798f9c

File tree

9 files changed

+498
-480
lines changed

9 files changed

+498
-480
lines changed

src/event_loop.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,19 @@ pub struct EventLoop<T: 'static> {
4141
/// `EventLoop` will coerce into this type, so functions that take this as a parameter can also
4242
/// take `&EventLoop`.
4343
pub struct EventLoopWindowTarget<T: 'static> {
44-
pub(crate) p: platform_impl::EventLoopWindowTarget<T>,
44+
pub(crate) inner: platform_impl::EventLoopWindowTarget<T>,
4545
pub(crate) _marker: ::std::marker::PhantomData<*mut ()>, // Not Send nor Sync
4646
}
4747

48+
impl<T> EventLoopWindowTarget<T> {
49+
pub(crate) fn new(inner: platform_impl::EventLoopWindowTarget<T>) -> Self {
50+
EventLoopWindowTarget {
51+
inner,
52+
_marker: Default::default(),
53+
}
54+
}
55+
}
56+
4857
impl<T> fmt::Debug for EventLoop<T> {
4958
fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result {
5059
fmtr.pad("EventLoop { .. }")

0 commit comments

Comments
 (0)