Skip to content

Commit

Permalink
Rearrange & Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Oldham committed Sep 12, 2024
1 parent a075bfb commit 47be312
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 242 deletions.
8 changes: 4 additions & 4 deletions psst-gui/src/ui/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ use druid::im::Vector;
use druid::widget::{Either, Flex, Label, Scroll};
use druid::{widget::List, LensExt, Selector, Widget, WidgetExt};

use crate::data::{Album, Artist, Ctx, HomeDetail, MixedView, Playlist, Show, Track, WithCtx};
use crate::data::{Album, Artist, Ctx, HomeDetail, MixedView, Show, Track, WithCtx};
use crate::widget::Empty;
use crate::{
data::AppState,
webapi::WebApi,
widget::{Async, MyWidgetExt},
};

use super::{album, artist, playable, show, theme, track};
use super::{artist, playable, theme, track};
use super::{
playlist,
utils::{error_widget, spinner_widget},
Expand Down Expand Up @@ -129,7 +129,7 @@ fn user_top_artists_widget() -> impl Widget<AppState> {
spinner_widget,
|| Scroll::new(
List::new(
|| artist::horizontal_recommended_artist_widget()
artist::horizontal_recommended_artist_widget
).horizontal()
// TODO Add a function which allows people to scroll with their scroll wheel!!!
).horizontal(),
Expand Down Expand Up @@ -162,7 +162,7 @@ fn top_tracks_widget() -> impl Widget<WithCtx<Vector<Arc<Track>>>> {
fn user_top_tracks_widget() -> impl Widget<AppState> {
Async::new(
spinner_widget,
|| top_tracks_widget(),
top_tracks_widget,
error_widget,
)
.lens(
Expand Down
Loading

0 comments on commit 47be312

Please sign in to comment.