summaryrefslogtreecommitdiffstats
path: root/src/file/format/json.rs
diff options
context:
space:
mode:
authorJascha <Jascha-N@users.noreply.github.com>2017-06-23 14:12:47 +0200
committerJascha <Jascha-N@users.noreply.github.com>2017-06-23 14:12:47 +0200
commit6c1d3807560dd2d177096118f8cce03933511685 (patch)
treecadd5bdf6f9aaa4397b9310f0de1e84782c6abc9 /src/file/format/json.rs
parentf4fad94a58c2eef5e1e49b4f2b150eac0efbd360 (diff)
Make boxed errors Send + Sync
Diffstat (limited to 'src/file/format/json.rs')
-rw-r--r--src/file/format/json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file/format/json.rs b/src/file/format/json.rs
index ed6c787..ead99f8 100644
--- a/src/file/format/json.rs
+++ b/src/file/format/json.rs
@@ -4,7 +4,7 @@ use std::collections::HashMap;
use std::error::Error;
use value::{Value, ValueKind};
-pub fn parse(uri: Option<&String>, text: &str) -> Result<HashMap<String, Value>, Box<Error>> {
+pub fn parse(uri: Option<&String>, text: &str) -> Result<HashMap<String, Value>, Box<Error + Send + Sync>> {
// Parse a JSON object value from the text
// TODO: Have a proper error fire if the root of a file is ever not a Table
let value = from_json_value(uri, &serde_json::from_str(text)?);