Skip to content

Commit

Permalink
Use type alias for return type
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jan 31, 2024
1 parent cab8f10 commit 85b12b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl eframe::App for BrowseApp {
}

#[cfg(target_arch = "wasm32")]
fn execute<F>(f: F) -> Option<poll_promise::Promise<Option<String>>>
fn execute<F>(f: F) -> SaveLoadPromise
where
F: std::future::Future<Output = Option<String>> + 'static,
{
Expand Down

0 comments on commit 85b12b4

Please sign in to comment.