From 40dd9404ec6efe1d698639ccbb0bc408b71d388b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Vald=C3=A9s?= Date: Mon, 24 Feb 2020 05:21:03 +0100 Subject: [PATCH] Code formatting --- src/redraw_scheduler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/redraw_scheduler.rs b/src/redraw_scheduler.rs index 57f13e7..5665398 100644 --- a/src/redraw_scheduler.rs +++ b/src/redraw_scheduler.rs @@ -20,7 +20,7 @@ fn parse_changed_setting(name: &str, value: Option) -> Value { "extra_buffer_frames" => { let mut settings = SETTINGS.get::(); if let Some(value) = value { - settings.extra_buffer_frames= value.as_u64().unwrap(); // TODO -- handle wrong data type + settings.extra_buffer_frames = value.as_u64().unwrap(); // TODO -- handle wrong data type SETTINGS.set(&settings); } Value::from(settings.extra_buffer_frames) @@ -32,13 +32,13 @@ fn parse_changed_setting(name: &str, value: Option) -> Value { } pub fn initialize_settings() { - SETTINGS.set(&RedrawSettings { extra_buffer_frames: 60 }); + SETTINGS.set(&RedrawSettings { + extra_buffer_frames: 60, + }); SETTINGS.add_listener("extra_buffer_frames", parse_changed_setting); } - - pub struct RedrawScheduler { frames_queued: AtomicU16, scheduled_frame: Mutex>