Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 101979f

Browse files
committed
Fix some final errors
1 parent b2fc92e commit 101979f

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pin-utils = "0.1.0-alpha.4"
3737
slab = "0.4.2"
3838

3939
[dependencies.futures-preview]
40-
version = "0.3.0-alpha.17"
40+
version = "0.3.0-alpha.18"
4141
features = ["async-await", "nightly"]
4242

4343
[dev-dependencies]

‎docs/src/tutorial/all_together.md‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,6 @@ async fn broker(mut events: Receiver<Event>) -> Result<()> {
135135
}
136136
Ok(())
137137
}
138-
139-
fn spawn_and_log_error<F>(fut: F) -> task::JoinHandle<()>
140-
where
141-
F: Future<Output = Result<()>> + Send + 'static,
142-
{
143-
task::spawn(async move {
144-
if let Err(e) = fut.await {
145-
eprintln!("{}", e)
146-
}
147-
})
148-
}
149-
150138
```
151139

152140
1. Inside the `server`, we create the broker's channel and `task`.

‎docs/src/tutorial/sending_messages.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ if Alice and Charley send two messages to Bob at the same time, Bob will see the
1919
# net::TcpStream,
2020
# prelude::Stream,
2121
# };
22-
# use std::sync::Arc;
2322
use futures::channel::mpsc; // 1
2423
use futures::SinkExt;
2524
use std::sync::Arc;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /