|
31 | 31 | type OutputResource = Fut;
|
32 | 32 | type OutputInstaller = FutureInstaller;
|
33 | 33 | fn installer(&mut self, _: II, _: &str) -> FutureInstaller {
|
34 |
| - FutureInstaller::default() |
| 34 | + FutureInstaller |
35 | 35 | }
|
36 | 36 | fn transform(&mut self, r: R, cfg: &SF, name: &str) -> Result<Fut, AnyError> {
|
37 | 37 | trace!("Wrapping {} into a future", name);
|
@@ -146,7 +146,7 @@ where
|
146 | 146 | type OutputResource = Fut;
|
147 | 147 | type OutputInstaller = FutureInstaller;
|
148 | 148 | fn installer(&mut self, _: II, _: &str) -> FutureInstaller {
|
149 |
| - FutureInstaller::default() |
| 149 | + FutureInstaller |
150 | 150 | }
|
151 | 151 | fn transform(&mut self, r: R, _: &SF, name: &str) -> Result<Fut, AnyError> {
|
152 | 152 | trace!("Wrapping {} into a future", name);
|
@@ -185,7 +185,7 @@ where
|
185 | 185 | trace!("Got a new connection on {}", me.name);
|
186 | 186 | // Poking the borrow checker around the un-pinning, otherwise it is unhappy
|
187 | 187 | let fut = (me.f)(conn, me.cfg);
|
188 |
| - tokio::spawn(async move { fut.await }); |
| 188 | + tokio::spawn(fut); |
189 | 189 | }
|
190 | 190 | Poll::Pending => return Poll::Pending,
|
191 | 191 | }
|
@@ -220,7 +220,7 @@ where
|
220 | 220 | type OutputResource = Acceptor<A, F, SF>;
|
221 | 221 | type OutputInstaller = FutureInstaller;
|
222 | 222 | fn installer(&mut self, _: II, _: &str) -> FutureInstaller {
|
223 |
| - FutureInstaller::default() |
| 223 | + FutureInstaller |
224 | 224 | }
|
225 | 225 | fn transform(
|
226 | 226 | &mut self,
|
@@ -263,7 +263,7 @@ where
|
263 | 263 | type OutputResource = Acceptor<A, FC, SF>;
|
264 | 264 | type OutputInstaller = FutureInstaller;
|
265 | 265 | fn installer(&mut self, _: II, _: &str) -> FutureInstaller {
|
266 |
| - FutureInstaller::default() |
| 266 | + FutureInstaller |
267 | 267 | }
|
268 | 268 | fn transform(
|
269 | 269 | &mut self,
|
|
0 commit comments