aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-10-26 16:47:29 +0200
committerDario Nieuwenhuis <[email protected]>2022-10-26 16:47:29 +0200
commiteeb072d9cbc457892c58670ca6fefacf8c80a32b (patch)
tree239a33833fcbe4c15cd3515d1b736afaee06c048 /embassy-net/src
parent1b249ca72d67a4ff8491b9b548be4afe8c7c2db0 (diff)
Update Rust nightly.
Diffstat (limited to 'embassy-net/src')
-rw-r--r--embassy-net/src/tcp.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs
index f8fff3e2d..f3bd2361c 100644
--- a/embassy-net/src/tcp.rs
+++ b/embassy-net/src/tcp.rs
@@ -292,7 +292,7 @@ mod embedded_io_impls {
292 } 292 }
293 293
294 impl<'d> embedded_io::asynch::Read for TcpSocket<'d> { 294 impl<'d> embedded_io::asynch::Read for TcpSocket<'d> {
295 type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> 295 type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a
296 where 296 where
297 Self: 'a; 297 Self: 'a;
298 298
@@ -302,7 +302,7 @@ mod embedded_io_impls {
302 } 302 }
303 303
304 impl<'d> embedded_io::asynch::Write for TcpSocket<'d> { 304 impl<'d> embedded_io::asynch::Write for TcpSocket<'d> {
305 type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> 305 type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a
306 where 306 where
307 Self: 'a; 307 Self: 'a;
308 308
@@ -310,7 +310,7 @@ mod embedded_io_impls {
310 self.io.write(buf) 310 self.io.write(buf)
311 } 311 }
312 312
313 type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> 313 type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a
314 where 314 where
315 Self: 'a; 315 Self: 'a;
316 316
@@ -324,7 +324,7 @@ mod embedded_io_impls {
324 } 324 }
325 325
326 impl<'d> embedded_io::asynch::Read for TcpReader<'d> { 326 impl<'d> embedded_io::asynch::Read for TcpReader<'d> {
327 type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> 327 type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a
328 where 328 where
329 Self: 'a; 329 Self: 'a;
330 330
@@ -338,7 +338,7 @@ mod embedded_io_impls {
338 } 338 }
339 339
340 impl<'d> embedded_io::asynch::Write for TcpWriter<'d> { 340 impl<'d> embedded_io::asynch::Write for TcpWriter<'d> {
341 type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> 341 type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a
342 where 342 where
343 Self: 'a; 343 Self: 'a;
344 344
@@ -346,7 +346,7 @@ mod embedded_io_impls {
346 self.io.write(buf) 346 self.io.write(buf)
347 } 347 }
348 348
349 type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> 349 type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a
350 where 350 where
351 Self: 'a; 351 Self: 'a;
352 352
@@ -445,7 +445,7 @@ pub mod client {
445 impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Read 445 impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Read
446 for TcpConnection<'d, N, TX_SZ, RX_SZ> 446 for TcpConnection<'d, N, TX_SZ, RX_SZ>
447 { 447 {
448 type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> 448 type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a
449 where 449 where
450 Self: 'a; 450 Self: 'a;
451 451
@@ -457,7 +457,7 @@ pub mod client {
457 impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Write 457 impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Write
458 for TcpConnection<'d, N, TX_SZ, RX_SZ> 458 for TcpConnection<'d, N, TX_SZ, RX_SZ>
459 { 459 {
460 type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> 460 type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a
461 where 461 where
462 Self: 'a; 462 Self: 'a;
463 463
@@ -465,7 +465,7 @@ pub mod client {
465 self.socket.write(buf) 465 self.socket.write(buf)
466 } 466 }
467 467
468 type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> 468 type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a
469 where 469 where
470 Self: 'a; 470 Self: 'a;
471 471