Skip to content

Commit 5575468

Browse files
committed
Appease rustfmt
1 parent 0536be4 commit 5575468

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

tokio/src/io/poll_aio.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ impl<T: AioSource> Source for MioSource<T> {
3030
&mut self,
3131
registry: &Registry,
3232
token: Token,
33-
interests: mio::Interest) -> io::Result<()>
34-
{
33+
interests: mio::Interest,
34+
) -> io::Result<()> {
3535
assert!(interests.is_aio() || interests.is_lio());
3636
self.0.register(registry.as_raw_fd(), usize::from(token));
3737
Ok(())

tokio/tests/io_poll_aio.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,13 @@ mod lio {
9999
let mut rbuf = Vec::new();
100100

101101
let mut builder = mio_aio::LioCbBuilder::with_capacity(1);
102-
builder = builder.emplace_slice(f.as_raw_fd(), 0, &wbuf[..], 0,
103-
mio_aio::LioOpcode::LIO_WRITE);
102+
builder = builder.emplace_slice(
103+
f.as_raw_fd(),
104+
0,
105+
&wbuf[..],
106+
0,
107+
mio_aio::LioOpcode::LIO_WRITE,
108+
);
104109
let liocb = builder.finish();
105110
let source = WrappedLioCb(liocb);
106111
let rt = rt();

0 commit comments

Comments
 (0)