From 4181e26b193d503dadee8842e1cc9451061ce29a Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Thu, 22 Jun 2017 23:14:26 -0700 Subject: Remove last unimplemented! --- src/file/format/yaml.rs | 13 ++++++------- 1 file 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), } } -- cgit v1.2.3