Skip to content

Commit

Permalink
Merge pull request #2093 from waynr/fix-SimpleWindowBuilder
Browse files Browse the repository at this point in the history
SimpleWindowBuilder.build should be generic over EventLoop<T>
  • Loading branch information
est31 committed Jan 1, 2024
2 parents 968fc92 + 21085fe commit ce5c3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/glutin/mod.rs
Expand Up @@ -330,7 +330,7 @@ impl SimpleWindowBuilder {

/// Create a new [`Window`](winit::window::Window) and [`Display`]
/// with the specified parameters.
pub fn build(self, event_loop: &winit::event_loop::EventLoop<()>) -> (winit::window::Window, Display<glutin::surface::WindowSurface>) {
pub fn build<T>(self, event_loop: &winit::event_loop::EventLoop<T>) -> (winit::window::Window, Display<glutin::surface::WindowSurface>) {
use glutin::prelude::*;
use raw_window_handle::HasRawWindowHandle;

Expand Down

0 comments on commit ce5c3a0

Please sign in to comment.