Skip to content

Commit

Permalink
test: fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Mar 27, 2024
1 parent 488d5f2 commit c98e22f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tokio/src/fs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ impl File {
/// let mut file = File::open("foo.txt").await?;
/// file.read_at(&mut buf, 5).await?;
///
/// assert_eq!(file.stream_position().await.unwrap(), 0);
/// assert_eq!(file.stream_position().await?, 0);
/// # Ok(())
/// # }
/// ```
Expand Down Expand Up @@ -610,7 +610,7 @@ impl File {
/// let mut file = File::create("foo.txt").await?;
/// file.write_at(b"foo", 5).await?;
///
/// assert_eq!(file.stream_position().await.unwrap(), 0);
/// assert_eq!(file.stream_position().await?, 0);
/// # Ok(())
/// # }
/// ```
Expand Down Expand Up @@ -641,7 +641,6 @@ impl File {
///
/// ```no_run
/// use tokio::fs::File;
/// use tokio::io::AsyncSeekExt;
///
/// # async fn dox() -> std::io::Result<()> {
/// let file = File::open("foo.txt").await?;
Expand Down Expand Up @@ -689,7 +688,6 @@ impl File {
///
/// ```no_run
/// use tokio::fs::File;
/// use tokio::io::AsyncSeekExt;
///
/// # async fn dox() -> std::io::Result<()> {
/// let file = File::create("foo.txt").await?;
Expand Down

0 comments on commit c98e22f

Please sign in to comment.