Use AsyncFn now that we're on Rust 2024

This commit is contained in:
Reinout Meliesie 2025-02-21 16:28:52 +01:00
commit 4699e0de38
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
3 changed files with 3 additions and 13 deletions

View file

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