From cc0bc95ba26bff9ff2cfe34dd2270826041ceeaf Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 23 Aug 2024 08:51:21 +0000 Subject: [PATCH] automatic cargo CI changes --- src/lib.rs | 1 - src/player/ui/showbox.rs | 6 +++--- src/store/mod.rs | 7 +------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 29c3a6d..3892aa9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,4 +3,3 @@ pub mod error; pub mod music; pub mod player; pub mod store; - diff --git a/src/player/ui/showbox.rs b/src/player/ui/showbox.rs index 72bd85e..fa0749d 100644 --- a/src/player/ui/showbox.rs +++ b/src/player/ui/showbox.rs @@ -1,7 +1,7 @@ use egui::text::LayoutJob; -use egui::{Color32, FontFamily, FontId, ImageSource, Label, TextFormat}; +use egui::{Color32, FontFamily, FontId, Label, TextFormat}; -use super::{Entry, ICON_RAW}; +use super::Entry; pub struct ShowBox { entry: Entry, @@ -24,7 +24,7 @@ impl egui::Widget for ShowBox { // .fill(Color32::DARK_GRAY) .show(ui, |ui| { ui.vertical_centered(|ui| { - let mut r = ui.add( + let r = ui.add( egui::Image::new(self.entry.img()) .rounding(5.0) .bg_fill(Color32::DARK_GRAY) diff --git a/src/store/mod.rs b/src/store/mod.rs index 4f1b500..83dcfc5 100644 --- a/src/store/mod.rs +++ b/src/store/mod.rs @@ -1,11 +1,6 @@ +#[derive(Default)] pub struct Store {} -impl Default for Store { - fn default() -> Self { - Store {} - } -} - impl Store { pub fn genres(&self) -> Vec { todo!()