summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glutin/src/application.rs5
-rw-r--r--winit/src/application.rs5
2 files changed, 4 insertions, 6 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs
index da0af5c0..b7bf21c3 100644
--- a/glutin/src/application.rs
+++ b/glutin/src/application.rs
@@ -340,9 +340,8 @@ async fn run_instance<A, E, C>(
// TODO: Avoid redrawing all the time by forcing widgets to
// request redraws on state changes
//
- // Then, we can use the `interface_state` here to decide whether
- // if a redraw is needed right away, or simply wait until a
- // specific time.
+ // Then, we can use the `interface_state` here to decide if a redraw
+ // is needed right away, or simply wait until a specific time.
let redraw_event = Event::Window(
crate::window::Event::RedrawRequested(Instant::now()),
);
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 88179391..77ca4b31 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -401,9 +401,8 @@ async fn run_instance<A, E, C>(
// TODO: Avoid redrawing all the time by forcing widgets to
// request redraws on state changes
//
- // Then, we can use the `interface_state` here to decide whether
- // if a redraw is needed right away, or simply wait until a
- // specific time.
+ // Then, we can use the `interface_state` here to decide if a redraw
+ // is needed right away, or simply wait until a specific time.
let redraw_event = Event::Window(
crate::window::Event::RedrawRequested(Instant::now()),
);