Skip to content

Commit

Permalink
Fixing WebGL example
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Jun 24, 2023
1 parent d2e4d45 commit 2124cf4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/webgl/src/buttons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -60,7 +58,7 @@ pub struct Button<UserEventType: Clone + 'static>
{
text: String,
font: Font,
text_formatted: Option<Rc<FormattedTextBlock>>,
text_formatted: Option<FormattedTextBlock>,
text_position: Vec2,
position: Rectangle,
currently_hovering: bool,
Expand Down

0 comments on commit 2124cf4

Please sign in to comment.