diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-01-30 14:56:49 -0800 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2017-01-30 14:56:49 -0800 |
commit | 4b9519d20788f9da6b82a94e036cae7c77cb4798 (patch) | |
tree | fc8ecfd9d89e8216eb707ab253dda9234241c8e9 /src/file | |
parent | 4d21cdf6730e6d1c327f95a733dbf6ab1d8d8976 (diff) |
:shirt:
Diffstat (limited to 'src/file')
-rw-r--r-- | src/file/json.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file/json.rs b/src/file/json.rs index 587d54a..5f1c3a2 100644 --- a/src/file/json.rs +++ b/src/file/json.rs @@ -21,7 +21,9 @@ impl Content { fn from_json_value<'a>(value: &serde_json::Value) -> Option<Cow<'a, Value>> { match *value { - serde_json::Value::String(ref value) => Some(Cow::Owned(Value::String(Cow::Borrowed(value)))), + serde_json::Value::String(ref value) => { + Some(Cow::Owned(Value::String(Cow::Borrowed(value)))) + } serde_json::Value::Number(ref value) => { if let Some(value) = value.as_i64() { |