Skip to content

Fix parse reason

Fix parse reason #3872

Triggered via pull request October 17, 2024 22:26
Status Failure
Total duration 1m 7s
Artifacts

lldb-formatter-tests.yml

on: pull_request
LLDB formatter tests
59s
LLDB formatter tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 21 warnings
LLDB formatter tests
Process completed with exit code 101.
LLDB formatter tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
LLDB formatter tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, robinraju/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
LLDB formatter tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
LLDB formatter tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
LLDB formatter tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
LLDB formatter tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
LLDB formatter tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L91: sdk/core/src/retrieve_tx_on_network.rs#L91
warning: assigning the result of `ToOwned::to_owned()` may be inefficient --> sdk/core/src/retrieve_tx_on_network.rs:91:17 | 91 | message = ReturnCode::message(return_code).to_owned(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ReturnCode::message(return_code).clone_into(&mut message)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L152: sdk/core/src/retrieve_tx_on_network.rs#L152
warning: the following explicit lifetimes could be elided: 'a --> sdk/core/src/retrieve_tx_on_network.rs:152:13 | 152 | fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { | ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 152 - fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { 152 + fn find_log(tx: &mut TransactionOnNetwork) -> Option<&mut Events> { |
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L91: sdk/core/src/retrieve_tx_on_network.rs#L91
warning: assigning the result of `ToOwned::to_owned()` may be inefficient --> sdk/core/src/retrieve_tx_on_network.rs:91:17 | 91 | message = ReturnCode::message(return_code).to_owned(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ReturnCode::message(return_code).clone_into(&mut message)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L152: sdk/core/src/retrieve_tx_on_network.rs#L152
warning: the following explicit lifetimes could be elided: 'a --> sdk/core/src/retrieve_tx_on_network.rs:152:13 | 152 | fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { | ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 152 - fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { 152 + fn find_log(tx: &mut TransactionOnNetwork) -> Option<&mut Events> { |
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L204: sdk/core/src/retrieve_tx_on_network.rs#L204
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:204:54 | 204 | let message = extract_message_from_string_reason(&reason); | ^^^^^^^ help: change this to: `reason` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L219: sdk/core/src/retrieve_tx_on_network.rs#L219
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:219:54 | 219 | let message = extract_message_from_string_reason(&reason); | ^^^^^^^ help: change this to: `reason` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L382: sdk/core/src/retrieve_tx_on_network.rs#L382
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:382:54 | 382 | serde_json::from_str::<TransactionOnNetwork>(&tx_str).unwrap(); | ^^^^^^^ help: change this to: `tx_str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L384: sdk/core/src/retrieve_tx_on_network.rs#L384
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:384:54 | 384 | serde_json::from_str::<TransactionOnNetwork>(&expected_tx_str).unwrap(); | ^^^^^^^^^^^^^^^^ help: change this to: `expected_tx_str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L152: sdk/core/src/retrieve_tx_on_network.rs#L152
warning: the following explicit lifetimes could be elided: 'a --> sdk/core/src/retrieve_tx_on_network.rs:152:13 | 152 | fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { | ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 152 - fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { 152 + fn find_log(tx: &mut TransactionOnNetwork) -> Option<&mut Events> { |
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L152: sdk/core/src/retrieve_tx_on_network.rs#L152
warning: the following explicit lifetimes could be elided: 'a --> sdk/core/src/retrieve_tx_on_network.rs:152:13 | 152 | fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { | ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 152 - fn find_log<'a>(tx: &'a mut TransactionOnNetwork) -> Option<&'a mut Events> { 152 + fn find_log(tx: &mut TransactionOnNetwork) -> Option<&mut Events> { |
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L204: sdk/core/src/retrieve_tx_on_network.rs#L204
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:204:54 | 204 | let message = extract_message_from_string_reason(&reason); | ^^^^^^^ help: change this to: `reason` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L219: sdk/core/src/retrieve_tx_on_network.rs#L219
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:219:54 | 219 | let message = extract_message_from_string_reason(&reason); | ^^^^^^^ help: change this to: `reason` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L382: sdk/core/src/retrieve_tx_on_network.rs#L382
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:382:54 | 382 | serde_json::from_str::<TransactionOnNetwork>(&tx_str).unwrap(); | ^^^^^^^ help: change this to: `tx_str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
[clippy] sdk/core/src/retrieve_tx_on_network.rs#L384: sdk/core/src/retrieve_tx_on_network.rs#L384
warning: this expression creates a reference which is immediately dereferenced by the compiler --> sdk/core/src/retrieve_tx_on_network.rs:384:54 | 384 | serde_json::from_str::<TransactionOnNetwork>(&expected_tx_str).unwrap(); | ^^^^^^^^^^^^^^^^ help: change this to: `expected_tx_str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow