From fd1856828eed5265591e9a31b1b9689e751483a4 Mon Sep 17 00:00:00 2001 From: Nick Babcock Date: Wed, 20 Dec 2023 17:22:23 -0600 Subject: [PATCH] ... --- src/text/reader.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/text/reader.rs b/src/text/reader.rs index da2a2c2..3e24ef8 100644 --- a/src/text/reader.rs +++ b/src/text/reader.rs @@ -134,7 +134,7 @@ where self.buf.position() } - #[inline(always)] + #[inline] unsafe fn next_opt(&mut self) -> (Option, Option) { #[derive(Debug)] enum ParseState { @@ -670,7 +670,7 @@ where /// assert_eq!(reader.read().unwrap(), Token::Unquoted(Scalar::new(b"1444.11.11"))); /// assert!(matches!(reader.read().unwrap_err().kind(), ReaderErrorKind::Eof)); /// ``` - #[inline(always)] + #[inline] pub fn read(&mut self) -> Result { // Workaround for borrow checker :( let s = unsafe { &mut *(self as *mut TokenReader) }; @@ -691,7 +691,7 @@ where /// assert_eq!(reader.read().unwrap(), Token::Unquoted(Scalar::new(b"1444.11.11"))); /// assert_eq!(reader.next().unwrap(), None); /// ``` - #[inline(always)] + #[inline] pub fn next(&mut self) -> Result, ReaderError> { match unsafe { self.next_opt() } { (Some(x), _) => Ok(Some(x)),