Skip to content

Commit 4a8c008

Browse files
authored
Merge pull request #34265 from bkirwi/tokio-new
[ore] Call the new constructor in the other Tokio codepath
2 parents 8736312 + 8e6ee2a commit 4a8c008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ore/src/task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ where
175175
Fut::Output: Send + 'static,
176176
{
177177
#[allow(clippy::disallowed_methods)]
178-
JoinHandle(tokio::spawn(future))
178+
JoinHandle::new(tokio::spawn(future))
179179
}
180180

181181
/// Spawns a new asynchronous task with a name.
@@ -218,7 +218,7 @@ where
218218
Function: FnOnce() -> Output + Send + 'static,
219219
Output: Send + 'static,
220220
{
221-
JoinHandle(task::spawn_blocking(function))
221+
JoinHandle::new(task::spawn_blocking(function))
222222
}
223223

224224
/// Runs the provided closure with a name on a thread where blocking is

0 commit comments

Comments
 (0)