diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /library/src/base/data.rs | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
Diffstat (limited to 'library/src/base/data.rs')
| -rw-r--r-- | library/src/base/data.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/src/base/data.rs b/library/src/base/data.rs index 1199056f..67ef2f2c 100644 --- a/library/src/base/data.rs +++ b/library/src/base/data.rs @@ -81,10 +81,7 @@ fn convert_json(value: serde_json::Value) -> Value { /// Format the user-facing JSON error message. fn format_json_error(error: serde_json::Error) -> String { assert!(error.is_syntax() || error.is_eof()); - format!( - "failed to parse json file: syntax error in line {}", - error.line() - ) + format!("failed to parse json file: syntax error in line {}", error.line()) } /// Read structured data from an XML file. |
