diff --git a/src/reader/mod.rs b/src/reader/mod.rs index 35f017c0..5e0f76f9 100644 --- a/src/reader/mod.rs +++ b/src/reader/mod.rs @@ -1003,6 +1003,7 @@ impl Reader { /// Read text into the given buffer, and return an event that borrows from /// either that buffer or from the input itself, based on the type of the /// reader. + #[inline] fn read_event_impl<'i, B>(&mut self, mut buf: B) -> Result, Error> where R: XmlSource<'i, B>, @@ -1012,6 +1013,7 @@ impl Reader { /// Private function to read until `>` is found. This function expects that /// it was called just after encounter a `<` symbol. + #[inline] fn read_until_close<'i, B>(&mut self, buf: B) -> Result, Error> where R: XmlSource<'i, B>,