chore: update format! macro use to satisfy latest clippy version (#194)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -5,7 +5,7 @@ pub enum StoreKey {
|
||||
|
||||
impl StoreKey {
|
||||
pub fn get_unique_pool_key(&self, key: &str) -> String {
|
||||
format!("{}:{}", self.unique_id(), key)
|
||||
format!("{prefix}:{key}", prefix = self.unique_id())
|
||||
}
|
||||
|
||||
pub fn unique_id(&self) -> String {
|
||||
|
||||
Reference in New Issue
Block a user