Skip to content

Commit 6372a14

Browse files
authored
Update buf_writer.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent eb7ae10 commit 6372a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/futures/write/buf_writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl<W: AsyncWrite> AsyncBufWrite for BufWriter<W> {
194194

195195
fn produce(self: Pin<&mut Self>, amt: usize) {
196196
let this = self.project();
197-
assert!(
197+
debug_assert!(
198198
*this.buffered + amt <= this.buf.len(),
199199
"produce called with amt exceeding buffer capacity"
200200
);

0 commit comments

Comments
 (0)