Fix warning
This commit is contained in:
parent
7e7f22fddf
commit
f050b83e4a
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ impl YamlLoader {
|
||||||
match *parent {
|
match *parent {
|
||||||
(Yaml::Array(ref mut v), _) => v.push(node.0),
|
(Yaml::Array(ref mut v), _) => v.push(node.0),
|
||||||
(Yaml::Hash(ref mut h), _) => {
|
(Yaml::Hash(ref mut h), _) => {
|
||||||
let mut cur_key = self.key_stack.last_mut().unwrap();
|
let cur_key = self.key_stack.last_mut().unwrap();
|
||||||
// current node is a key
|
// current node is a key
|
||||||
if cur_key.is_badvalue() {
|
if cur_key.is_badvalue() {
|
||||||
*cur_key = node.0;
|
*cur_key = node.0;
|
||||||
|
|
Loading…
Reference in a new issue