Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiblt1304 committed Jan 30, 2024
1 parent d0b1232 commit 24fd9de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 5 additions & 6 deletions esdt-safe/src/to_sovereign/create_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,11 @@ pub trait CreateTxModule:
}

event_payments.push(
(
payment.token_identifier,
payment.token_nonce,
payment.amount
)
.into(),
MultiValue3 ((
payment.token_identifier.clone(),
payment.token_nonce.clone(),

Check warning on line 178 in esdt-safe/src/to_sovereign/create_tx.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] esdt-safe/src/to_sovereign/create_tx.rs#L178

warning: using `clone` on type `u64` which implements the `Copy` trait --> esdt-safe/src/to_sovereign/create_tx.rs:178:21 | 178 | payment.token_nonce.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `payment.token_nonce` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
Raw output
esdt-safe/src/to_sovereign/create_tx.rs:178:21:w:warning: using `clone` on type `u64` which implements the `Copy` trait
   --> esdt-safe/src/to_sovereign/create_tx.rs:178:21
    |
178 |                     payment.token_nonce.clone(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `payment.token_nonce`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
    = note: `#[warn(clippy::clone_on_copy)]` on by default


__END__

Check warning on line 178 in esdt-safe/src/to_sovereign/create_tx.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] esdt-safe/src/to_sovereign/create_tx.rs#L178

warning: using `clone` on type `u64` which implements the `Copy` trait --> esdt-safe/src/to_sovereign/create_tx.rs:178:21 | 178 | payment.token_nonce.clone(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `payment.token_nonce` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
Raw output
esdt-safe/src/to_sovereign/create_tx.rs:178:21:w:warning: using `clone` on type `u64` which implements the `Copy` trait
   --> esdt-safe/src/to_sovereign/create_tx.rs:178:21
    |
178 |                     payment.token_nonce.clone(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `payment.token_nonce`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
    = note: `#[warn(clippy::clone_on_copy)]` on by default


__END__
payment.amount.clone()
))
);

if burn_mapper.contains(&payment.token_identifier) {
Expand Down
5 changes: 2 additions & 3 deletions esdt-safe/src/to_sovereign/events.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use num_bigint::BigUint;
use transaction::{
transaction_status::TransactionStatus, BatchId, BlockNonce, GasLimit, PaymentsVec, TransferData, TxId
transaction_status::TransactionStatus, BatchId, GasLimit, TransferData, TxId
};

multiversx_sc::imports!();
Expand Down Expand Up @@ -39,7 +38,7 @@ pub trait EventsModule {
fn deposit_event(
&self,
#[indexed] dest_address: &ManagedAddress,
#[indexed] tokens: &MultivalueEncoded<MultiValue3<TokenIdentifier, u64, BigUint>>,
#[indexed] tokens: &MultiValueEncoded<MultiValue3<TokenIdentifier, u64, BigUint>>,
event_data: DepositEvent<Self::Api>,
);

Expand Down

0 comments on commit 24fd9de

Please sign in to comment.