From 4ca545e4f8f2829602c690ca975e8df15baebba8 Mon Sep 17 00:00:00 2001 From: Gunnar Schulze Date: Tue, 9 Jul 2024 20:31:32 +0200 Subject: [PATCH] Support real values as keys in Yaml hashes --- src/file/format/yaml.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file/format/yaml.rs b/src/file/format/yaml.rs index 63189c7a..332b308e 100644 --- a/src/file/format/yaml.rs +++ b/src/file/format/yaml.rs @@ -50,6 +50,7 @@ fn from_yaml_value( match key { yaml::Yaml::String(k) => m.insert(k.to_owned(), from_yaml_value(uri, value)?), yaml::Yaml::Integer(k) => m.insert(k.to_string(), from_yaml_value(uri, value)?), + yaml::Yaml::Real(k) => m.insert(k.to_owned(), from_yaml_value(uri, value)?), _ => unreachable!(), }; }