Skip to content

Commit 6eeed32

Browse files
authored
Fix fmt in future write generics encoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent 5ea5bdf commit 6eeed32

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/futures/write/generic/encoder.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ impl<W: AsyncWrite, E: Encode> Encoder<W, E> {
8787
}
8888

8989
State::Finishing | State::Done => {
90-
return Poll::Ready(Err(io::Error::other(
91-
"Write after close",
92-
)))
90+
return Poll::Ready(Err(io::Error::other("Write after close")))
9391
}
9492
};
9593

@@ -113,9 +111,7 @@ impl<W: AsyncWrite, E: Encode> Encoder<W, E> {
113111
State::Encoding => this.encoder.flush(&mut output)?,
114112

115113
State::Finishing | State::Done => {
116-
return Poll::Ready(Err(io::Error::other(
117-
"Flush after close",
118-
)))
114+
return Poll::Ready(Err(io::Error::other("Flush after close")))
119115
}
120116
};
121117

0 commit comments

Comments
 (0)