diff --git a/tests/test.rs b/tests/test.rs index 32b2a6f8..5fc876c6 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -100,7 +100,7 @@ fn test_issue94() { let mut reader = Reader::from_reader(&data[..]); reader.trim_text(true); loop { - match reader.read_event() { + match reader.read_event_into(&mut Vec::new()) { Ok(Eof) | Err(..) => break, _ => (), } diff --git a/tests/xmlrs_reader_tests.rs b/tests/xmlrs_reader_tests.rs index 83a47ebb..96d4883b 100644 --- a/tests/xmlrs_reader_tests.rs +++ b/tests/xmlrs_reader_tests.rs @@ -373,7 +373,7 @@ fn test_bytes(input: &[u8], output: &[u8], trim: bool) { let mut decoder = reader.decoder(); loop { - let line = match reader.read_resolved_event() { + let line = match reader.read_resolved_event_into(&mut Vec::new()) { Ok((_, Event::Decl(e))) => { // Declaration could change decoder decoder = reader.decoder();