Skip to content

Instantly share code, notes, and snippets.

@P1n3appl3
Created February 11, 2022 19:44
Show Gist options
  • Save P1n3appl3/6833c78c01f72da117c6d01518b9c7fa to your computer and use it in GitHub Desktop.
Save P1n3appl3/6833c78c01f72da117c6d01518b9c7fa to your computer and use it in GitHub Desktop.
{
"message": "casting integer literal to `u64` is unnecessary",
"code": {
"code": "clippy::unnecessary_cast",
"explanation": null
},
"level": "warning",
"spans": [
{
"file_name": "../../src/connectivity/bluetooth/lib/fuchsia-bluetooth/src/inspect.rs",
"byte_start": 15523,
"byte_end": 15533,
"line_start": 448,
"line_end": 448,
"column_start": 43,
"column_end": 53,
"is_primary": true,
"text": [
{
"text": " bytes_per_second_current: 280 as u64,",
"highlight_start": 43,
"highlight_end": 53
}
],
"label": null,
"suggested_replacement": null,
"suggestion_applicability": null,
"expansion": null
}
],
"children": [
{
"message": "for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast",
"code": null,
"level": "help",
"spans": [],
"children": [],
"rendered": null
},
{
"message": "try",
"code": null,
"level": "help",
"spans": [
{
"file_name": "../../src/connectivity/bluetooth/lib/fuchsia-bluetooth/src/inspect.rs",
"byte_start": 15523,
"byte_end": 15533,
"line_start": 448,
"line_end": 448,
"column_start": 43,
"column_end": 53,
"is_primary": true,
"text": [
{
"text": " bytes_per_second_current: 280 as u64,",
"highlight_start": 43,
"highlight_end": 53
}
],
"label": null,
"suggested_replacement": "280_u64",
"suggestion_applicability": "MachineApplicable",
"expansion": null
}
],
"children": [],
"rendered": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment