diff --git a/tokio/src/task/builder.rs b/tokio/src/task/builder.rs index 5635c1a430a..c7a101b294c 100644 --- a/tokio/src/task/builder.rs +++ b/tokio/src/task/builder.rs @@ -99,11 +99,7 @@ impl<'a> Builder<'a> { /// [runtime handle]: crate::runtime::Handle /// [`Handle::spawn`]: crate::runtime::Handle::spawn #[track_caller] - pub fn spawn_on( - &mut self, - future: Fut, - handle: &Handle, - ) -> io::Result> + pub fn spawn_on(self, future: Fut, handle: &Handle) -> io::Result> where Fut: Future + Send + 'static, Fut::Output: Send + 'static,