Skip to content

Commit dbd546a

Browse files
committed
refactor: change from impl to generic
1 parent 4b22fbd commit dbd546a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ fn get_most_recent_file(folder: &PathBuf) -> anyhow::Result<PathBuf> {
415415
}
416416

417417
#[cfg(not(target_arch = "wasm32"))]
418-
fn execute(
419-
f: impl std::future::Future<Output = Box<LoadingStatus>> + 'static + Send,
418+
fn execute<F: std::future::Future<Output = Box<LoadingStatus>> + 'static + Send>(
419+
f: F,
420420
) -> poll_promise::Promise<Box<LoadingStatus>> {
421421
poll_promise::Promise::spawn_async(f)
422422
}

0 commit comments

Comments
 (0)