Skip to content

Commit

Permalink
Fix clippy::unnecessary_wraps warning
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 26, 2020
1 parent 98e4dfc commit 7431eb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions futures/tests/stream_into_async_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn test_into_async_read() {
}

#[test]
fn test_into_async_bufread() -> std::io::Result<()> {
fn test_into_async_bufread() {
use core::pin::Pin;
use futures::io::AsyncBufRead;
use futures::stream::{self, TryStreamExt};
Expand Down Expand Up @@ -97,6 +97,4 @@ fn test_into_async_bufread() -> std::io::Result<()> {
reader.as_mut().consume(3);

assert_fill_buf!(reader, &[][..]);

Ok(())
}

0 comments on commit 7431eb8

Please sign in to comment.