Skip to content

Commit 277e2b6

Browse files
committed
Disable rustfmt on a line we don't want changed
1 parent 278a03a commit 277e2b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub fn read_all<R: Read>(r: &mut R, mut buf: &mut [u8]) -> io::Result<()> {
99
while !buf.is_empty() {
1010
match r.read(buf) {
1111
Ok(0) => return Err(io::Error::new(io::ErrorKind::Other, "unexpected EOF")),
12+
#[cfg_attr(rustfmt, rustfmt_skip)]
1213
Ok(len) => buf = &mut {buf}[len..],
1314
Err(ref e) if e.kind() == io::ErrorKind::Interrupted => {}
1415
Err(e) => return Err(e),

0 commit comments

Comments
 (0)