From f2f93f5393e31a4434f29ee649713a99d4a8c9ac Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 7 Dec 2022 12:22:06 +0900 Subject: [PATCH] Fix clippy warning --- src/display.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display.rs b/src/display.rs index 1ea1ac8..7c30c2c 100644 --- a/src/display.rs +++ b/src/display.rs @@ -3,8 +3,8 @@ use crate::mpd_handler::{InfoFromShared, MPDHandler, MPDHandlerState, MPDPlaySta use crate::Opt; use ggez::event::EventHandler; use ggez::graphics::{ - self, Color, DrawMode, DrawParam, Drawable, FontData, Image, Mesh, MeshBuilder, PxScale, Rect, - Text, TextFragment, Transform, + self, Color, DrawMode, DrawParam, Drawable, Image, Mesh, MeshBuilder, PxScale, Rect, Text, + TextFragment, Transform, }; use ggez::input::keyboard::{self, KeyInput}; use ggez::mint::Vector2; @@ -92,7 +92,7 @@ fn string_to_text( let find_result = unicode_support::get_matching_font_from_char(c); if let Ok(path) = find_result { - let new_font = FontData::from_path(ctx, &path); + let new_font = ggez::graphics::FontData::from_path(ctx, &path); if let Ok(font) = new_font { let font_name: String = path .file_name()