File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 63
63
uses : actions-rs/cargo@v1
64
64
with :
65
65
command : test
66
- args : --all --features unstable attributes
66
+ args : --all --features "unstable attributes"
67
+
68
+ - name : documentation test
69
+ uses : actions-rs/cargo@v1
70
+ with :
71
+ command : test
72
+ args : --doc --features "unstable attributes"
67
73
68
74
check_fmt_and_docs :
69
75
name : Checking fmt and docs
Original file line number Diff line number Diff line change 152
152
//! Await two futures concurrently, and return a tuple of their output:
153
153
//!
154
154
//! ```
155
+ //! use async_std::prelude::*;
156
+ //!
155
157
//! #[async_std::main]
156
158
//! async fn main() {
157
159
//! let a = async { 1u8 };
167
169
//!
168
170
//! #[async_std::main]
169
171
//! async fn main() -> std::io::Result<()> {
170
- //! let mut socket = UdpSocket::bind("127.0.0.1:8080")?;
172
+ //! let socket = UdpSocket::bind("127.0.0.1:8080").await ?;
171
173
//! println!("Listening on {}", socket.local_addr()?);
172
174
//!
173
175
//! let mut buf = vec![0u8; 1024];
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ extension_trait! {
350
350
assert!(start.elapsed().as_millis() >= 15);
351
351
352
352
s.next().await;
353
- assert!(start.elapsed().as_millis() >= 35 );
353
+ assert!(start.elapsed().as_millis() >= 25 );
354
354
#
355
355
# }) }
356
356
```
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ fn open_file() {
8
8
match res {
9
9
Ok ( _) => panic ! ( "Found file with random name: We live in a simulation" ) ,
10
10
Err ( e) => assert_eq ! (
11
- "Could not open `/ashjudlkahasdasdsikdhajik/asdasdasdasdasdasd/fjuiklashdbflasas`" ,
11
+ "could not open `/ashjudlkahasdasdsikdhajik/asdasdasdasdasdasd/fjuiklashdbflasas`" ,
12
12
& format!( "{}" , e)
13
13
) ,
14
14
}
You can’t perform that action at this time.
0 commit comments