Skip to content

Commit a178504

Browse files
committed
[update] Rename EventLoopPublisher
Refactored the name of `EventLoopPublisher` in the winit crate module, to simply `LoopPublisher`, keeping in line with the other abstraction, `Loop`.
1 parent 0d14064 commit a178504

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • crates/lambda-platform/src/winit

crates/lambda-platform/src/winit/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ fn construct_window_size(
8484
};
8585
}
8686

87-
pub struct EventLoopPublisher<E: 'static> {
87+
pub struct LoopPublisher<E: 'static> {
8888
winit_proxy: EventLoopProxy<E>,
8989
}
9090

91-
impl<E: 'static> EventLoopPublisher<E> {
91+
impl<E: 'static> LoopPublisher<E> {
9292
/// Instantiate a new EventLoopPublisher from an event loop proxy.
9393
#[inline]
9494
pub fn new(winit_proxy: EventLoopProxy<E>) -> Self {
95-
return EventLoopPublisher { winit_proxy };
95+
return LoopPublisher { winit_proxy };
9696
}
9797

9898
/// Send an event
@@ -103,9 +103,9 @@ impl<E: 'static> EventLoopPublisher<E> {
103103
}
104104

105105
impl<E: 'static> Loop<E> {
106-
pub fn create_publisher(&mut self) -> EventLoopPublisher<E> {
106+
pub fn create_publisher(&mut self) -> LoopPublisher<E> {
107107
let proxy = self.event_loop.create_proxy();
108-
return EventLoopPublisher::new(proxy);
108+
return LoopPublisher::new(proxy);
109109
}
110110

111111
/// Returns the primary monitor for the current OS if detectable.

0 commit comments

Comments
 (0)