Skip to content

Deferred calls

Deferred calls #8213

Triggered via pull request August 26, 2024 15:06
Status Failure
Total duration 2m 10s
Artifacts

ci.yml

on: pull_request
Matrix: full
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 38 warnings
doc
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
full (macOS-latest)
The process '/Users/runner/.cargo/bin/cargo' failed with exit code 101
full (ubuntu-latest)
The job was canceled because "macOS-latest" failed.
full (ubuntu-latest)
The operation was canceled.
unneeded `return` statement: massa-models/src/deferred_calls.rs#L231
error: unneeded `return` statement --> massa-models/src/deferred_calls.rs:231:17 | 231 | / return Err(ModelsError::InvalidVersionError(format!( 232 | | "Invalid version to create an DeferredCallId: {}", 233 | | version 234 | | ))) | |___________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `-D clippy::needless-return` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_return)]` help: remove `return` | 231 ~ Err(ModelsError::InvalidVersionError(format!( 232 + "Invalid version to create an DeferredCallId: {}", 233 + version 234 + ))) |
this expression creates a reference which is immediately dereferenced by the compiler: massa-models/src/deferred_calls.rs#L131
error: this expression creates a reference which is immediately dereferenced by the compiler --> massa-models/src/deferred_calls.rs:131:40 | 131 | serializer.serialize_bytes(&self.as_bytes()) | ^^^^^^^^^^^^^^^^ help: change this to: `self.as_bytes()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `-D clippy::needless-borrow` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
you should consider adding a `Default` implementation for `DeferredCallIdDeserializer`: massa-models/src/deferred_calls.rs#L68
error: you should consider adding a `Default` implementation for `DeferredCallIdDeserializer` --> massa-models/src/deferred_calls.rs:68:5 | 68 | / pub fn new() -> Self { 69 | | Self { 70 | | bytes_deserializer: VecU8Deserializer::new( 71 | | std::ops::Bound::Included(0), ... | 74 | | } 75 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default = note: `-D clippy::new-without-default` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::new_without_default)]` help: try adding this | 66 + impl Default for DeferredCallIdDeserializer { 67 + fn default() -> Self { 68 + Self::new() 69 + } 70 + } |
unneeded `return` statement: massa-models/src/deferred_calls.rs#L231
error: unneeded `return` statement --> massa-models/src/deferred_calls.rs:231:17 | 231 | / return Err(ModelsError::InvalidVersionError(format!( 232 | | "Invalid version to create an DeferredCallId: {}", 233 | | version 234 | | ))) | |___________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `-D clippy::needless-return` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_return)]` help: remove `return` | 231 ~ Err(ModelsError::InvalidVersionError(format!( 232 + "Invalid version to create an DeferredCallId: {}", 233 + version 234 + ))) |
this expression creates a reference which is immediately dereferenced by the compiler: massa-models/src/deferred_calls.rs#L131
error: this expression creates a reference which is immediately dereferenced by the compiler --> massa-models/src/deferred_calls.rs:131:40 | 131 | serializer.serialize_bytes(&self.as_bytes()) | ^^^^^^^^^^^^^^^^ help: change this to: `self.as_bytes()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `-D clippy::needless-borrow` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
you should consider adding a `Default` implementation for `DeferredCallIdDeserializer`: massa-models/src/deferred_calls.rs#L68
error: you should consider adding a `Default` implementation for `DeferredCallIdDeserializer` --> massa-models/src/deferred_calls.rs:68:5 | 68 | / pub fn new() -> Self { 69 | | Self { 70 | | bytes_deserializer: VecU8Deserializer::new( 71 | | std::ops::Bound::Included(0), ... | 74 | | } 75 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default = note: `-D clippy::new-without-default` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::new_without_default)]` help: try adding this | 66 + impl Default for DeferredCallIdDeserializer { 67 + fn default() -> Self { 68 + Self::new() 69 + } 70 + } |
unused macro definition: `DeferredCallIdVariant`: massa-models/src/deferred_calls.rs#L28
error: unused macro definition: `DeferredCallIdVariant` --> massa-models/src/deferred_calls.rs:28:12 | 28 | pub struct DeferredCallId(Vec<u8>); | ^^^^^^^^^^^^^^
unused macro definition: `DeferredCallId`: massa-models/src/deferred_calls.rs#L28
error: unused macro definition: `DeferredCallId` --> massa-models/src/deferred_calls.rs:28:12 | 28 | pub struct DeferredCallId(Vec<u8>); | ^^^^^^^^^^^^^^ | = note: `-D unused-macros` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_macros)]`
unused macro definition: `DeferredCallIdVariant`: massa-models/src/deferred_calls.rs#L28
error: unused macro definition: `DeferredCallIdVariant` --> massa-models/src/deferred_calls.rs:28:12 | 28 | pub struct DeferredCallId(Vec<u8>); | ^^^^^^^^^^^^^^
unused macro definition: `DeferredCallId`: massa-models/src/deferred_calls.rs#L28
error: unused macro definition: `DeferredCallId` --> massa-models/src/deferred_calls.rs:28:12 | 28 | pub struct DeferredCallId(Vec<u8>); | ^^^^^^^^^^^^^^ | = note: `-D unused-macros` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_macros)]`
check
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
clippy
Clippy had exited with the 101 exit code
sanity
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
sanity
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
sanity
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/
sanity
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/
sanity
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/
sanity
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/
gas-costs-check
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/
gas-costs-check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
gas-costs-check
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/
gas-costs-check
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/
gas-costs-check
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/
gas-costs-check
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/
security
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
doc
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
doc
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
doc
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/
doc
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/
doc
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/
doc
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/
full (macOS-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
full (macOS-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
full (macOS-latest)
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/
full (macOS-latest)
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/
full (macOS-latest)
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/
full (macOS-latest)
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/
unit_tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check
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/
check
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/
check
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/
check
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
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
clippy
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
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
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
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/