Skip to content

Commit 6329d48

Browse files
thisisouvikclaude
andcommitted
fix(contracts): satisfy clippy in usdc_lending_pool
Name the elided lifetime on usdc_client's return type and prefix the unused test binding, so `cargo clippy --all-targets -D warnings` passes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 1681340 commit 6329d48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

contracts/usdc_lending_pool/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ impl UsdcLendingPool {
368368
}
369369

370370
/// Build a typed SEP-41 token client for the USDC contract.
371-
fn usdc_client(env: &Env) -> token::TokenClient {
371+
fn usdc_client(env: &Env) -> token::TokenClient<'_> {
372372
let addr: Address = env
373373
.storage()
374374
.instance()

contracts/usdc_lending_pool/src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn test_deposit_rejects_negative_amount() {
138138

139139
#[test]
140140
fn test_deposit_accumulates_on_second_deposit() {
141-
let (env, pool_id, _admin, user, usdc_addr) = setup();
141+
let (env, pool_id, _admin, user, _usdc_addr) = setup();
142142
let client = UsdcLendingPoolClient::new(&env, &pool_id);
143143

144144
// First deposit

0 commit comments

Comments
 (0)