Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Feb 7, 2024
1 parent e9f38a9 commit 202745b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tokio/src/fs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,9 @@ impl Inner {
let res = buf.write_to(&mut &*std);
(std, Operation::Write(res), buf)
})
.ok_or_else(|| {
io::Error::new(io::ErrorKind::Other, "background task failed")
})?;
.ok_or_else(|| {
io::Error::new(io::ErrorKind::Other, "background task failed")
})?;
self.state = State::Busy(blocking_task_join_handle);
}
State::Busy(rx) => {
Expand All @@ -909,12 +909,10 @@ impl Inner {
Operation::Read(_) => Poll::Ready(Ok(())),
Operation::Write(res) => Poll::Ready(res),
Operation::Seek(_) => Poll::Ready(Ok(())),
}
},
};
}
};
}


}
}

Expand Down

0 comments on commit 202745b

Please sign in to comment.