summaryrefslogtreecommitdiffstats
path: root/src/file/format/yaml.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/format/yaml.rs')
-rw-r--r--src/file/format/yaml.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file/format/yaml.rs b/src/file/format/yaml.rs
index 4911679..4040ea6 100644
--- a/src/file/format/yaml.rs
+++ b/src/file/format/yaml.rs
@@ -30,6 +30,7 @@ fn from_yaml_value(uri: Option<&String>, value: &yaml::Yaml) -> Value {
match *value {
yaml::Yaml::String(ref value) => Value::new(uri, ValueKind::String(value.clone())),
yaml::Yaml::Real(ref value) => {
+ // TODO: Figure out in what cases this can panic?
Value::new(uri, ValueKind::Float(value.parse::<f64>().unwrap()))
}
yaml::Yaml::Integer(value) => Value::new(uri, ValueKind::Integer(value)),