From 6ba0b4c47c9f34691c661482336981277080eda0 Mon Sep 17 00:00:00 2001 From: itsjunetime Date: Wed, 23 Oct 2024 14:42:29 -0600 Subject: [PATCH] Deduplicate code and fix a few clippy complaints --- psst-gui/src/ui/mod.rs | 9 +- psst-gui/src/ui/playlist.rs | 39 +++---- psst-gui/src/ui/preferences.rs | 2 +- psst-gui/src/webapi/client.rs | 204 ++++++++++----------------------- psst-gui/src/webapi/local.rs | 2 +- psst-gui/src/widget/link.rs | 3 +- 6 files changed, 82 insertions(+), 177 deletions(-) diff --git a/psst-gui/src/ui/mod.rs b/psst-gui/src/ui/mod.rs index fcf9612d..2efc9e8f 100644 --- a/psst-gui/src/ui/mod.rs +++ b/psst-gui/src/ui/mod.rs @@ -474,17 +474,12 @@ fn route_icon_widget() -> impl Widget