Skip to content

Commit 8046b93

Browse files
committed
lint
1 parent ae2e80a commit 8046b93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/stellar-interchain-token-service/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ impl InterchainTokenService {
479479
env: &Env,
480480
token_id: BytesN<32>,
481481
) -> Result<TokenIdConfigValue, ContractError> {
482-
let config = Self::token_id_config(env, token_id.clone())?;
482+
let config = Self::token_id_config(env, token_id)?;
483483

484484
Ok(config)
485485
}

contracts/stellar-interchain-token-service/src/flow_limit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl FlowDirection {
7474
// Equivalent to flow_amount + flow - reverse_flow <= flow_limit
7575
ensure!(new_flow <= max_allowed, ContractError::FlowLimitExceeded);
7676

77-
self.update_flow(env, token_id.clone(), new_flow);
77+
self.update_flow(env, token_id, new_flow);
7878

7979
Ok(())
8080
}

0 commit comments

Comments
 (0)