Skip to content

Commit 418a377

Browse files
committed
Merge pull request #7 from sebcrozet/master
Update to the last rust-nigthtly.
2 parents c2a1144 + 44df995 commit 418a377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reader/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl<B: Buffer> EventReader<B> {
5555
}
5656

5757
/// XML events iterator, created by `events()` method on `Parser`.
58-
pub struct Events<'a, B> {
58+
pub struct Events<'a, B: 'a> {
5959
reader: &'a mut EventReader<B>,
6060
finished: bool
6161
}

src/reader/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl PullParser {
253253
/// providing different buffers each time, the result will be undefined.
254254
pub fn next<B: Buffer>(&mut self, r: &mut B) -> XmlEvent {
255255
if self.finish_event.is_some() {
256-
return self.finish_event.get_ref().clone();
256+
return self.finish_event.as_ref().unwrap().clone();
257257
}
258258

259259
if self.next_event.is_some() {

0 commit comments

Comments
 (0)