2017-11-03 07:38:26 -05:00
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around assigned value",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
|
|
|
"level": "warning",
|
|
|
|
"spans": [
|
|
|
|
{
|
|
|
|
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
2017-11-06 03:34:23 -06:00
|
|
|
"byte_start": 1027,
|
|
|
|
"byte_end": 1040,
|
2017-11-03 07:38:26 -05:00
|
|
|
"line_start": 24,
|
|
|
|
"line_end": 24,
|
|
|
|
"column_start": 14,
|
|
|
|
"column_end": 27,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
|
|
|
"text": " let _a = (1 / (2 + 3));",
|
|
|
|
"highlight_start": 14,
|
|
|
|
"highlight_end": 27
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "lint level defined here",
|
|
|
|
"code": null,
|
|
|
|
"level": "note",
|
|
|
|
"spans": [
|
|
|
|
{
|
|
|
|
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
2017-11-06 03:34:23 -06:00
|
|
|
"byte_start": 873,
|
|
|
|
"byte_end": 886,
|
2017-11-03 07:38:26 -05:00
|
|
|
"line_start": 19,
|
|
|
|
"line_end": 19,
|
|
|
|
"column_start": 9,
|
|
|
|
"column_end": 22,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
|
|
|
"text": "#![warn(unused_parens)]",
|
|
|
|
"highlight_start": 9,
|
|
|
|
"highlight_end": 22
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
|
|
|
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
2017-11-06 03:34:23 -06:00
|
|
|
"byte_start": 1027,
|
|
|
|
"byte_end": 1040,
|
2017-11-03 07:38:26 -05:00
|
|
|
"line_start": 24,
|
|
|
|
"line_end": 24,
|
|
|
|
"column_start": 14,
|
|
|
|
"column_end": 27,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
|
|
|
"text": " let _a = (1 / (2 + 3));",
|
|
|
|
"highlight_start": 14,
|
|
|
|
"highlight_end": 27
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "1 / (2 + 3)",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rendered": null
|
|
|
|
}
|