diff --git a/common/io/src/buffer/buffer_read_ext.rs b/common/io/src/buffer/buffer_read_ext.rs index 315f10425138..1d840e713f4f 100644 --- a/common/io/src/buffer/buffer_read_ext.rs +++ b/common/io/src/buffer/buffer_read_ext.rs @@ -126,7 +126,7 @@ pub trait BufferReadExt: BufferRead { } impl BufferReadExt for R -where R: BufferRead + where R: BufferRead { fn ignores(&mut self, f: impl Fn(u8) -> bool) -> Result { let mut bytes = 0; @@ -191,10 +191,10 @@ where R: BufferRead } fn ignore_white_spaces_and_byte(&mut self, b: u8) -> Result { - self.ignores(|c: u8| c == b' ' || c == b'\t')?; + self.ignores(|c: u8| c == b' ')?; if self.ignore_byte(b)? { - self.ignores(|c: u8| c == b' ' || c == b'\t')?; + self.ignores(|c: u8| c == b' ')?; return Ok(true); }