mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #549] [MERGED] Deduplicate code and fix a few clippy complaints #595
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#595
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/549
Author: @itsjunetime
Created: 10/23/2024
Status: ✅ Merged
Merged: 10/24/2024
Merged by: @jacksongoode
Base:
main← Head:deduplicate_and_clippy📝 Commits (1)
6ba0b4cDeduplicate code and fix a few clippy complaints📊 Changes
6 files changed (+82 additions, -177 deletions)
View changed files
📝
psst-gui/src/ui/mod.rs(+2 -7)📝
psst-gui/src/ui/playlist.rs(+18 -21)📝
psst-gui/src/ui/preferences.rs(+1 -1)📝
psst-gui/src/webapi/client.rs(+59 -145)📝
psst-gui/src/webapi/local.rs(+1 -1)📝
psst-gui/src/widget/link.rs(+1 -2)📄 Description
While I was working on #548, I noticed a few areas where code was unnecessarily copied or did extra work/computation that it didn't need to do. Most of that was in the WebApi client struct, but there were a few other instances elsewhere as well. There were also some issues that clippy was complaining about which I took care of.
As far as I can tell, everything still works just as expected after these changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.