Skip to content

Commit e249342

Browse files
committed
Add default metadata type to FallibleTask
1 parent 6a43c00 commit e249342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ impl<T, M: fmt::Debug> fmt::Debug for Task<T, M> {
454454
/// This can be useful to avoid the panic produced when polling the `Task`
455455
/// future if the executor dropped its `Runnable`.
456456
#[must_use = "tasks get canceled when dropped, use `.detach()` to run them in the background"]
457-
pub struct FallibleTask<T, M> {
457+
pub struct FallibleTask<T, M = ()> {
458458
task: Task<T, M>,
459459
}
460460

0 commit comments

Comments
 (0)