Make YamlLoader implement MarkedEventReceiver.
This commit is contained in:
parent
9da84a3b41
commit
e09485ea92
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ use std::str::FromStr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::vec;
|
use std::vec;
|
||||||
use parser::*;
|
use parser::*;
|
||||||
use scanner::{TScalarStyle, ScanError, TokenType};
|
use scanner::{TScalarStyle, ScanError, TokenType, Marker};
|
||||||
|
|
||||||
/// A YAML node is stored as this `Yaml` enumeration, which provides an easy way to
|
/// A YAML node is stored as this `Yaml` enumeration, which provides an easy way to
|
||||||
/// access your YAML document.
|
/// access your YAML document.
|
||||||
|
@ -74,8 +74,8 @@ pub struct YamlLoader {
|
||||||
anchor_map: BTreeMap<usize, Yaml>,
|
anchor_map: BTreeMap<usize, Yaml>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EventReceiver for YamlLoader {
|
impl MarkedEventReceiver for YamlLoader {
|
||||||
fn on_event(&mut self, ev: &Event) {
|
fn on_event(&mut self, ev: &Event, _: Marker) {
|
||||||
// println!("EV {:?}", ev);
|
// println!("EV {:?}", ev);
|
||||||
match *ev {
|
match *ev {
|
||||||
Event::DocumentStart => {
|
Event::DocumentStart => {
|
||||||
|
|
Loading…
Reference in a new issue