Revert "chore: update format! macro use to satisfy latest clippy version (#194)" (#196)

This reverts commit f29de67f1f.
This commit is contained in:
Louise Poole
2025-04-25 18:09:38 +02:00
committed by GitHub
parent f29de67f1f
commit 409cf15864
38 changed files with 1680 additions and 1361 deletions

View File

@@ -95,7 +95,7 @@ fn handle_sync(
});
for (i, reserve_bytes) in reserves_bytes.iter().enumerate() {
let attribute_name = format!("reserve{i}");
let attribute_name = format!("reserve{}", i);
// By using a HashMap, we can overwrite the previous value of the reserve attribute if
// it is for the same pool and the same attribute name (reserves).
tx_change.entity_changes.insert(

View File

@@ -5,7 +5,7 @@ pub enum StoreKey {
impl StoreKey {
pub fn get_unique_pool_key(&self, key: &str) -> String {
format!("{prefix}:{key}", prefix = self.unique_id())
format!("{}:{}", self.unique_id(), key)
}
pub fn unique_id(&self) -> String {