diff options
author | Joel Gallant <joel@joelgallant.me> | 2020-09-03 12:06:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 12:06:08 -0600 |
commit | 436c964037a1833fe6d17eda37e25425af7e9760 (patch) | |
tree | 5e6468c43f2f06fca2a338839a3d7a80e4d67d49 /src/file/format/json.rs | |
parent | 2c0b201055be60ec45e258adcc6c4b6e01bcd627 (diff) | |
parent | e84a39949c0c1625c1886b8f718b8165c7a8e831 (diff) |
Merge pull request #134 from eisterman/fix_clippy_warnings
Fix of all the clippy warnings and removing of deprecated Error::description method
Diffstat (limited to 'src/file/format/json.rs')
-rw-r--r-- | src/file/format/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file/format/json.rs b/src/file/format/json.rs index 87240a3..0d15070 100644 --- a/src/file/format/json.rs +++ b/src/file/format/json.rs @@ -7,7 +7,7 @@ use value::{Value, ValueKind}; pub fn parse( uri: Option<&String>, text: &str, -) -> Result<HashMap<String, Value>, Box<Error + Send + Sync>> { +) -> Result<HashMap<String, Value>, Box<dyn 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)?); |