Fix clippy warning
This commit is contained in:
parent
ab31ddfddc
commit
93e7192485
1 changed files with 4 additions and 1 deletions
|
@ -345,7 +345,10 @@ impl IntoIterator for Yaml {
|
||||||
type IntoIter = YamlIter;
|
type IntoIter = YamlIter;
|
||||||
|
|
||||||
fn into_iter(self) -> Self::IntoIter {
|
fn into_iter(self) -> Self::IntoIter {
|
||||||
YamlIter {yaml: self.into_vec().unwrap_or(vec![]).into_iter()}
|
YamlIter {
|
||||||
|
yaml: self.into_vec()
|
||||||
|
.unwrap_or_else(Vec::new).into_iter()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue