Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca80ca9 commit e405544Copy full SHA for e405544
.github/workflows/ci.yml
@@ -41,7 +41,7 @@ jobs:
41
uses: actions-rs/cargo@v1
42
with:
43
command: test
44
- args: --all --doc --features unstable
+ args: --all --features unstable
45
46
check_fmt_and_docs:
47
name: Checking fmt and docs
tests/buf_writer.rs
@@ -48,13 +48,13 @@ fn test_buffered_writer() {
48
}
49
50
#[test]
51
-fn test_buffered_writer_inner_into_inner_does_not_flush() {
+fn test_buffered_writer_inner_into_inner_flushes() {
52
task::block_on(async {
53
let mut w = BufWriter::with_capacity(3, Vec::new());
54
w.write(&[0, 1]).await.unwrap();
55
assert_eq!(*w.get_ref(), []);
56
let w = w.into_inner().await.unwrap();
57
- assert_eq!(w, []);
+ assert_eq!(w, [0, 1]);
58
})
59
60
0 commit comments