diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-10-26 16:47:29 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-10-26 16:47:29 +0200 |
| commit | eeb072d9cbc457892c58670ca6fefacf8c80a32b (patch) | |
| tree | 239a33833fcbe4c15cd3515d1b736afaee06c048 /embassy-sync | |
| parent | 1b249ca72d67a4ff8491b9b548be4afe8c7c2db0 (diff) | |
Update Rust nightly.
Diffstat (limited to 'embassy-sync')
| -rw-r--r-- | embassy-sync/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-sync/src/pipe.rs | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml index 584d5ba9f..cd6ff07db 100644 --- a/embassy-sync/Cargo.toml +++ b/embassy-sync/Cargo.toml | |||
| @@ -32,7 +32,7 @@ atomic-polyfill = "1.0.1" | |||
| 32 | critical-section = "1.1" | 32 | critical-section = "1.1" |
| 33 | heapless = "0.7.5" | 33 | heapless = "0.7.5" |
| 34 | cfg-if = "1.0.0" | 34 | cfg-if = "1.0.0" |
| 35 | embedded-io = "0.3.0" | 35 | embedded-io = "0.3.1" |
| 36 | 36 | ||
| 37 | [dev-dependencies] | 37 | [dev-dependencies] |
| 38 | futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } | 38 | futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } |
diff --git a/embassy-sync/src/pipe.rs b/embassy-sync/src/pipe.rs index 7d64b648e..cd577f34f 100644 --- a/embassy-sync/src/pipe.rs +++ b/embassy-sync/src/pipe.rs | |||
| @@ -361,7 +361,7 @@ mod io_impls { | |||
| 361 | } | 361 | } |
| 362 | 362 | ||
| 363 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Pipe<M, N> { | 363 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Pipe<M, N> { |
| 364 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 364 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 365 | where | 365 | where |
| 366 | Self: 'a; | 366 | Self: 'a; |
| 367 | 367 | ||
| @@ -371,7 +371,7 @@ mod io_impls { | |||
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Pipe<M, N> { | 373 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Pipe<M, N> { |
| 374 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 374 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 375 | where | 375 | where |
| 376 | Self: 'a; | 376 | Self: 'a; |
| 377 | 377 | ||
| @@ -379,7 +379,7 @@ mod io_impls { | |||
| 379 | Pipe::write(self, buf).map(Ok) | 379 | Pipe::write(self, buf).map(Ok) |
| 380 | } | 380 | } |
| 381 | 381 | ||
| 382 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 382 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 383 | where | 383 | where |
| 384 | Self: 'a; | 384 | Self: 'a; |
| 385 | 385 | ||
| @@ -393,7 +393,7 @@ mod io_impls { | |||
| 393 | } | 393 | } |
| 394 | 394 | ||
| 395 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for &Pipe<M, N> { | 395 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for &Pipe<M, N> { |
| 396 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 396 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 397 | where | 397 | where |
| 398 | Self: 'a; | 398 | Self: 'a; |
| 399 | 399 | ||
| @@ -403,7 +403,7 @@ mod io_impls { | |||
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for &Pipe<M, N> { | 405 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for &Pipe<M, N> { |
| 406 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 406 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 407 | where | 407 | where |
| 408 | Self: 'a; | 408 | Self: 'a; |
| 409 | 409 | ||
| @@ -411,7 +411,7 @@ mod io_impls { | |||
| 411 | Pipe::write(self, buf).map(Ok) | 411 | Pipe::write(self, buf).map(Ok) |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 414 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 415 | where | 415 | where |
| 416 | Self: 'a; | 416 | Self: 'a; |
| 417 | 417 | ||
| @@ -425,7 +425,7 @@ mod io_impls { | |||
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Reader<'_, M, N> { | 427 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Reader<'_, M, N> { |
| 428 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 428 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 429 | where | 429 | where |
| 430 | Self: 'a; | 430 | Self: 'a; |
| 431 | 431 | ||
| @@ -439,7 +439,7 @@ mod io_impls { | |||
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Writer<'_, M, N> { | 441 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Writer<'_, M, N> { |
| 442 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 442 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 443 | where | 443 | where |
| 444 | Self: 'a; | 444 | Self: 'a; |
| 445 | 445 | ||
| @@ -447,7 +447,7 @@ mod io_impls { | |||
| 447 | Writer::write(self, buf).map(Ok) | 447 | Writer::write(self, buf).map(Ok) |
| 448 | } | 448 | } |
| 449 | 449 | ||
| 450 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 450 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 451 | where | 451 | where |
| 452 | Self: 'a; | 452 | Self: 'a; |
| 453 | 453 | ||
