summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-22 23:14:26 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-22 23:14:26 -0700
commit4181e26b193d503dadee8842e1cc9451061ce29a (patch)
tree19e9fe0358a5a0797906709f1cb53697f4a569e8
parentc798fd881fa8652e5d9ea2873babed55da1ad05f (diff)
Remove last unimplemented!
-rw-r--r--src/file/format/yaml.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/file/format/yaml.rs b/src/file/format/yaml.rs
index 1cba0d3..4911679 100644
--- a/src/file/format/yaml.rs
+++ b/src/file/format/yaml.rs
@@ -54,13 +54,12 @@ fn from_yaml_value(uri: Option<&String>, value: &yaml::Yaml) -> Value {
Value::new(uri, ValueKind::Array(l))
}
- yaml::Yaml::Null => Value::new(uri, ValueKind::Nil),
-
- // TODO: how should we BadValue?
- _ => {
- unimplemented!();
- }
-
+ // 1. Yaml NULL
+ // 2. BadValue – It shouldn't be possible to hit BadValue as this only happens when
+ // using the index trait badly or on a type error but we send back nil.
+ // 3. Alias – No idea what to do with this and there is a note in the lib that its
+ // not fully supported yet anyway
+ _ => Value::new(uri, ValueKind::Nil),
}
}