Skip to content

Commit 9a07b8a

Browse files
committed
v0.1.1
Just refreshes examples in documentation
1 parent 3248ab0 commit 9a07b8a

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "async-rs"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2024"
55
authors = ["Marc-Antoine Perennou <[email protected]>"]
66
description = "Async runtime abstration"

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,4 @@ async fn tokio_main() -> io::Result<()> {
5050
async fn main() -> io::Result<()> {
5151
tokio_main().await
5252
}
53-
54-
#[tokio::test]
55-
async fn tokio() -> io::Result<()> {
56-
tokio_main().await
57-
}
5853
```

src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
//!
1212
//! ## Example
1313
//!
14-
//!use async_rs::{Executor, Reactor, Runtime, TokioRuntime};
14+
//! ```rust
15+
//! use async_rs::{Executor, Reactor, Runtime, TokioRuntime};
1516
//! use std::{io, sync::Arc, time::Duration};
1617
//!
1718
//! async fn get_a(rt: Arc<TokioRuntime>) -> io::Result<u32> {
@@ -37,11 +38,7 @@
3738
//! async fn main() -> io::Result<()> {
3839
//! tokio_main().await
3940
//! }
40-
//!
41-
//! #[tokio::test]
42-
//! async fn tokio() -> io::Result<()> {
43-
//! tokio_main().await
44-
//! }
41+
//! ```
4542
4643
mod runtime;
4744
pub use runtime::*;

0 commit comments

Comments
 (0)