@@ -131,7 +131,7 @@ impl Kernel for LambdaKernel {
131131 let mut active_render_api = Some ( render_api) ;
132132
133133 let publisher = event_loop. create_publisher ( ) ;
134- publisher. send_event ( Events :: Kernel {
134+ publisher. publish_event ( Events :: Kernel {
135135 event : KernelEvent :: Initialized ,
136136 issued_at : Instant :: now ( ) ,
137137 } ) ;
@@ -143,13 +143,13 @@ impl Kernel for LambdaKernel {
143143 WinitEvent :: WindowEvent { event, .. } => match event {
144144 WinitWindowEvent :: CloseRequested => {
145145 // Issue a Shutdown event to deallocate resources and clean up.
146- publisher. send_event ( Events :: Kernel {
146+ publisher. publish_event ( Events :: Kernel {
147147 event : KernelEvent :: Shutdown ,
148148 issued_at : Instant :: now ( ) ,
149149 } ) ;
150150 }
151151 WinitWindowEvent :: Resized ( dims) => {
152- publisher. send_event ( Events :: Window {
152+ publisher. publish_event ( Events :: Window {
153153 event : WindowEvent :: Resize {
154154 width : dims. width ,
155155 height : dims. height ,
@@ -158,7 +158,7 @@ impl Kernel for LambdaKernel {
158158 } )
159159 }
160160 WinitWindowEvent :: ScaleFactorChanged { new_inner_size, .. } => {
161- publisher. send_event ( Events :: Window {
161+ publisher. publish_event ( Events :: Window {
162162 event : WindowEvent :: Resize {
163163 width : new_inner_size. width ,
164164 height : new_inner_size. height ,
0 commit comments