Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Infra
CI Jobs
Official Devices Validator
Commits
4e11df7b
Commit
4e11df7b
authored
Aug 27, 2020
by
José Henrique
Browse files
Update lint_json.rs
parent
6ea34e85
Changes
1
Hide whitespace changes
Inline
Side-by-side
lint_json.rs
View file @
4e11df7b
...
...
@@ -106,7 +106,7 @@ fn test_integrity_team(json_iter: json::JsonValue) -> String {
fn
main
()
{
let
data
=
fs
::
read_to_string
(
"official_devices/devices.json"
)
.expect
(
"Unable to read file"
);
println!
(
"Running Integrity Tests on devices.json....."
);
println!
(
"Running Integrity Tests on
official_devices/
devices.json....."
);
fs
::
write
(
"/tmp/current_file"
,
"devices.json"
)
.expect
(
"Unable to write file"
);
let
parsed
=
json
::
parse
(
&
data
)
.unwrap_or_else
(|
error
|
{
println!
(
"
\t
Error parsing JSON: {}"
,
error
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment