From e62d903041f192a2dd3afcce660d764547f0793f Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Mon, 2 Aug 2021 13:33:52 +0200 Subject: [PATCH] Add 'UpdateArgs import to 'buttons' file --- voxygen/src/hud/buttons.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voxygen/src/hud/buttons.rs b/voxygen/src/hud/buttons.rs index e6d2418276..d91df8188c 100644 --- a/voxygen/src/hud/buttons.rs +++ b/voxygen/src/hud/buttons.rs @@ -12,7 +12,7 @@ use crate::{ use client::Client; use common::comp::{SkillSet, Stats}; use conrod_core::{ - widget::{self, Button, Image, Text}, + widget::{self, Button, Image, Text, UpdateArgs}, widget_ids, Color, Colorable, Positionable, Sizeable, UiCell, Widget, WidgetCommon, }; use i18n::Localization; @@ -124,9 +124,9 @@ impl<'a> Widget for Buttons<'a> { fn style(&self) -> Self::Style {} - fn update(self, args: widget::UpdateArgs) -> Self::Event { + fn update(self, args: UpdateArgs) -> Self::Event { common_base::prof_span!("Buttons::update"); - let widget::UpdateArgs { state, ui, .. } = args; + let UpdateArgs { state, ui, .. } = args; let localized_strings = self.localized_strings; let button_tooltip = Tooltip::new({