message: Avoid match where an if-let works better
diff: @@ -57,8 +57,7 @@ fn read_line<R: BufRead + ?Sized>(
  Err(ref e) if e.kind() == ErrorKind::Interrupted => continue,
  Err(e) => return Err(e),
  };
  - match memchr::memchr(b'\n', available) {
  - Some(i) => {
  + if let Some(i) = memchr::memchr(b'\n', available) {
  if i + read >= buf.len() {
  return Err(Error::new(
  ErrorKind::InvalidInput,
  @@ -67,19 +66,16 @@ fn read_line<R: BufRead + ?Sized>(
  }
  buf[read..=read + i].copy_from_slice(&available[..=i]);
  (true, i + 1)
  - }
  - None => {
  + } else {
  if available.len() + read > buf.len() {
  return Err(Error::new(
  ErrorKind::InvalidInput,
  "command operation exceeded 4k buffer",
  ));
  }
  - buf[read..read + available.len()]
  - .copy_from_slice(available);
  + buf[read..read + available.len()].copy_from_slice(available);
  (false, available.len())
  }
  - }
  };
  r.consume(used);
  read += used;
  