chore: update format! macro use to satisfy latest clippy version (#194)
This commit is contained in:
@@ -50,7 +50,7 @@ fn log_to_event(
|
||||
// We need to track initialization again to keep track of pool current tick, which is set on
|
||||
// initialization and changed on swaps.
|
||||
let pool_id = init.id.to_vec().to_hex();
|
||||
let pool = pools_store.get_last(format!("{}:{}", "pool", &pool_id))?;
|
||||
let pool = pools_store.get_last(format!("pool:{pool_id}"))?;
|
||||
Some(PoolEvent {
|
||||
log_ordinal: event.ordinal,
|
||||
pool_id,
|
||||
@@ -67,7 +67,7 @@ fn log_to_event(
|
||||
})
|
||||
} else if let Some(swap) = Swap::match_and_decode(event) {
|
||||
let pool_id = swap.id.to_vec().to_hex();
|
||||
let pool = pools_store.get_last(format!("{}:{}", "pool", &pool_id))?;
|
||||
let pool = pools_store.get_last(format!("pool:{pool_id}"))?;
|
||||
Some(PoolEvent {
|
||||
log_ordinal: event.ordinal,
|
||||
pool_id,
|
||||
@@ -102,7 +102,7 @@ fn log_to_event(
|
||||
// })
|
||||
} else if let Some(modify_liquidity) = ModifyLiquidity::match_and_decode(event) {
|
||||
let pool_id = modify_liquidity.id.to_vec().to_hex();
|
||||
let pool = pools_store.get_last(format!("{}:{}", "pool", &pool_id))?;
|
||||
let pool = pools_store.get_last(format!("pool:{pool_id}"))?;
|
||||
Some(PoolEvent {
|
||||
log_ordinal: event.ordinal,
|
||||
pool_id,
|
||||
@@ -124,7 +124,7 @@ fn log_to_event(
|
||||
.id
|
||||
.to_vec()
|
||||
.to_hex();
|
||||
let pool = pools_store.get_last(format!("{}:{}", "pool", &pool_id))?;
|
||||
let pool = pools_store.get_last(format!("pool:{pool_id}"))?;
|
||||
Some(PoolEvent {
|
||||
log_ordinal: event.ordinal,
|
||||
pool_id: pool_id.clone(),
|
||||
|
||||
Reference in New Issue
Block a user