Further code style conformity

This commit is contained in:
Reinout Meliesie 2026-01-08 23:08:52 +01:00
commit df3c9cba8a
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 4 additions and 2 deletions

View file

@ -48,7 +48,9 @@ fn show_window(application: &Application) {
let ui = UI::new( let ui = UI::new(
window, window,
async |film_uuid| { async |film_uuid| {
data_manager.get_film_details(film_uuid).await data_manager
.get_film_details(film_uuid)
.await
.expect("A film with the given UUID should exist") .expect("A film with the given UUID should exist")
}, },
); );

View file

@ -44,7 +44,7 @@ impl<A: MediaAdapter> CollatedMediaGrid<A> {
} }
pub async fn set_media(&self, media: Vec<A::Overview>, sorting: A::Sorting) { pub async fn set_media(&self, media: Vec<A::Overview>, sorting: A::Sorting) {
// TODO: Check if we should use `MainContext :: invoke_local` here // TODO: Check if we should use `MainContext::invoke_local` here
let mut widgets = Vec::new(); let mut widgets = Vec::new();
for media in media.as_slice() { for media in media.as_slice() {