From 400dbcabd3ecc221f94834040162231cd225b9d4 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Wed, 11 Aug 2021 08:22:18 -0700 Subject: [PATCH] remove global suffix on settings call --- src/renderer/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index eb364fc..fb4f038 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -136,7 +136,7 @@ impl Renderer { let region = self.compute_text_region(grid_position, cell_width); let style = style.as_ref().unwrap_or(&self.default_style); - if SETTINGS.get_global::().debug_renderer { + if SETTINGS.get::().debug_renderer { let random_hsv: HSV = (rand::random::() * 360.0, 0.3, 0.3).into(); let random_color = random_hsv.to_color(255); self.paint.set_color(random_color); @@ -198,7 +198,7 @@ impl Renderer { let y_adjustment = self.shaper.y_adjustment(); - if SETTINGS.get_global::().debug_renderer { + if SETTINGS.get::().debug_renderer { let random_hsv: HSV = (rand::random::() * 360.0, 1.0, 1.0).into(); let random_color = random_hsv.to_color(255); self.paint.set_color(random_color);