pub(crate) fn read<'a, R: BufRead + ?Sized>( inp: &mut R, buf: &'a mut String, ) -> Result<Option<&'a mut String>>