From 2124cf4d3c49ed92951cee18f8766ad89359515f Mon Sep 17 00:00:00 2001 From: QuantumBadger Date: Sat, 24 Jun 2023 13:20:38 +0100 Subject: [PATCH] Fixing WebGL example --- examples/webgl/src/buttons.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/webgl/src/buttons.rs b/examples/webgl/src/buttons.rs index ccbe5a0..1214651 100644 --- a/examples/webgl/src/buttons.rs +++ b/examples/webgl/src/buttons.rs @@ -16,8 +16,6 @@ #![deny(warnings)] -use std::rc::Rc; - use speedy2d::color::Color; use speedy2d::dimen::Vec2; use speedy2d::font::{Font, FormattedTextBlock, TextLayout, TextOptions}; @@ -60,7 +58,7 @@ pub struct Button { text: String, font: Font, - text_formatted: Option>, + text_formatted: Option, text_position: Vec2, position: Rectangle, currently_hovering: bool,