We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1286e commit 7a4bcaaCopy full SHA for 7a4bcaa
src/file/format/dhall.rs
@@ -1,4 +1,4 @@
1
-use std::collections::HashMap;
+use crate::map::Map;
2
use std::error::Error;
3
4
use crate::{
@@ -10,7 +10,7 @@ use crate::{
10
pub fn parse(
11
uri: Option<&String>,
12
text: &str,
13
-) -> Result<HashMap<String, Value>, Box<dyn Error + Send + Sync>> {
+) -> Result<Map<String, Value>, Box<dyn Error + Send + Sync>> {
14
let value = from_dhall_value(uri, serde_dhall::from_str(text).parse()?);
15
match value.kind {
16
ValueKind::Table(map) => Ok(map),
0 commit comments