Skip to content

Subscription SC

Subscription SC #3

Triggered via pull request September 11, 2023 07:51
Status Success
Total duration 9m 54s
Artifacts 2

actions.yml

on: pull_request
Contracts  /  Wasm tests
9m 44s
Contracts / Wasm tests
Contracts  /  Rust tests
2m 1s
Contracts / Rust tests
Contracts  /  Clippy linter check
2m 14s
Contracts / Clippy linter check
Fit to window
Zoom out
Zoom in

Annotations

1 error and 15 warnings
Contracts / Wasm tests
no matching workflow run found with any artifacts?
[clippy] subscription-fee/src/subtract_payments.rs#L67: subscription-fee/src/subtract_payments.rs#L67
warning: redundant clone --> subscription-fee/src/subtract_payments.rs:67:51 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> subscription-fee/src/subtract_payments.rs:67:43 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone = note: `#[warn(clippy::redundant_clone)]` on by default
[clippy] subscription-fee/src/subtract_payments.rs#L67: subscription-fee/src/subtract_payments.rs#L67
warning: redundant clone --> subscription-fee/src/subtract_payments.rs:67:84 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> subscription-fee/src/subtract_payments.rs:67:78 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
[clippy] subscriber/src/base_functions.rs#L24: subscriber/src/base_functions.rs#L24
warning: this returns a `Result<_, ()>` --> subscriber/src/base_functions.rs:24:5 | 24 | / fn perform_action( 25 | | sc: &Self::SubSc, 26 | | user_address: ManagedAddress<<Self::SubSc as ContractBase>::Api>, 27 | | user_id: AddressId, 28 | | service_info: &ServiceInfo<<Self::SubSc as ContractBase>::Api>, 29 | | additional_data: &<Self as SubscriberContract>::AdditionalDataType, 30 | | ) -> Result<InterpretedResult<<Self::SubSc as ContractBase>::Api>, ()>; | |__________________________________________________________________________^ | = help: use a custom `Error` type instead = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err = note: `#[warn(clippy::result_unit_err)]` on by default
[clippy] metabonding-subscriber/src/lib.rs#L99: metabonding-subscriber/src/lib.rs#L99
warning: redundant clone --> metabonding-subscriber/src/lib.rs:99:25 | 99 | user_address.clone(), | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> metabonding-subscriber/src/lib.rs:99:13 | 99 | user_address.clone(), | ^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone = note: `#[warn(clippy::redundant_clone)]` on by default
[clippy] subscription-fee/tests/subscription_setup/mod.rs#L10: subscription-fee/tests/subscription_setup/mod.rs#L10
warning: struct `SubscriptionSetup` is never constructed --> subscription-fee/tests/subscription_setup/mod.rs:10:12 | 10 | pub struct SubscriptionSetup<SubscriptionObjBuilder> | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
[clippy] subscription-fee/tests/subscription_setup/mod.rs#L20: subscription-fee/tests/subscription_setup/mod.rs#L20
warning: associated function `new` is never used --> subscription-fee/tests/subscription_setup/mod.rs:24:12 | 20 | impl<SubscriptionObjBuilder> SubscriptionSetup<SubscriptionObjBuilder> | ---------------------------------------------------------------------- associated function in this implementation ... 24 | pub fn new(builder: SubscriptionObjBuilder) -> Self { | ^^^
[clippy] metabonding-subscriber/src/lib.rs#L99: metabonding-subscriber/src/lib.rs#L99
warning: redundant clone --> metabonding-subscriber/src/lib.rs:99:25 | 99 | user_address.clone(), | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> metabonding-subscriber/src/lib.rs:99:13 | 99 | user_address.clone(), | ^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone = note: `#[warn(clippy::redundant_clone)]` on by default
[clippy] subscription-fee/src/subtract_payments.rs#L67: subscription-fee/src/subtract_payments.rs#L67
warning: redundant clone --> subscription-fee/src/subtract_payments.rs:67:51 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> subscription-fee/src/subtract_payments.rs:67:43 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone = note: `#[warn(clippy::redundant_clone)]` on by default
[clippy] subscription-fee/src/subtract_payments.rs#L67: subscription-fee/src/subtract_payments.rs#L67
warning: redundant clone --> subscription-fee/src/subtract_payments.rs:67:84 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> subscription-fee/src/subtract_payments.rs:67:78 | 67 | EsdtTokenPayment::new(token_id.clone().unwrap_esdt(), 0, amount.clone()); | ^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
[clippy] subscriber/src/base_functions.rs#L24: subscriber/src/base_functions.rs#L24
warning: this returns a `Result<_, ()>` --> subscriber/src/base_functions.rs:24:5 | 24 | / fn perform_action( 25 | | sc: &Self::SubSc, 26 | | user_address: ManagedAddress<<Self::SubSc as ContractBase>::Api>, 27 | | user_id: AddressId, 28 | | service_info: &ServiceInfo<<Self::SubSc as ContractBase>::Api>, 29 | | additional_data: &<Self as SubscriberContract>::AdditionalDataType, 30 | | ) -> Result<InterpretedResult<<Self::SubSc as ContractBase>::Api>, ()>; | |__________________________________________________________________________^ | = help: use a custom `Error` type instead = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err = note: `#[warn(clippy::result_unit_err)]` on by default
Contracts / Rust tests: subscription-fee/tests/subscription_setup/mod.rs#L10
struct `SubscriptionSetup` is never constructed
Contracts / Rust tests: subscription-fee/tests/subscription_setup/mod.rs#L24
associated function `new` is never used
Contracts / Wasm 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/
Contracts / Wasm tests: subscription-fee/tests/subscription_setup/mod.rs#L10
struct `SubscriptionSetup` is never constructed
Contracts / Wasm tests: subscription-fee/tests/subscription_setup/mod.rs#L24
associated function `new` is never used

Artifacts

Produced during runtime
Name Size
report Expired
3.61 KB
report-markdown Expired
742 Bytes