Skip to content

Commit 53a86d3

Browse files
committed
Apply clippy suggestions
1 parent ea94083 commit 53a86d3

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

framework/packages/abstract-core/src/objects/entry/channel_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<'a> PrimaryKey<'a> for &ChannelEntry {
7272
impl<'a> Prefixer<'a> for &ChannelEntry {
7373
fn prefix(&self) -> Vec<Key> {
7474
let mut res = self.connected_chain.prefix();
75-
res.extend(self.protocol.prefix().into_iter());
75+
res.extend(self.protocol.prefix());
7676
res
7777
}
7878
}

framework/packages/abstract-core/src/objects/entry/contract_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl<'a> PrimaryKey<'a> for &ContractEntry {
9292
impl<'a> Prefixer<'a> for &ContractEntry {
9393
fn prefix(&self) -> Vec<Key> {
9494
let mut res = self.protocol.prefix();
95-
res.extend(self.contract.prefix().into_iter());
95+
res.extend(self.contract.prefix());
9696
res
9797
}
9898
}

framework/packages/abstract-core/src/objects/entry/dex_asset_pairing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ impl<'a> PrimaryKey<'a> for &DexAssetPairing {
6363
impl<'a> Prefixer<'a> for &DexAssetPairing {
6464
fn prefix(&self) -> Vec<cw_storage_plus::Key> {
6565
let mut res = self.0 .0 .0.prefix();
66-
res.extend(self.0 .1 .0.prefix().into_iter());
67-
res.extend(self.0 .2.prefix().into_iter());
66+
res.extend(self.0 .1 .0.prefix());
67+
res.extend(self.0 .2.prefix());
6868
res
6969
}
7070
}

framework/packages/abstract-core/src/objects/module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ impl<'a> PrimaryKey<'a> for &ModuleInfo {
152152
impl<'a> Prefixer<'a> for &ModuleInfo {
153153
fn prefix(&self) -> Vec<Key> {
154154
let mut res = self.namespace.prefix();
155-
res.extend(self.name.prefix().into_iter());
156-
res.extend(self.version.prefix().into_iter());
155+
res.extend(self.name.prefix());
156+
res.extend(self.version.prefix());
157157
res
158158
}
159159
}

framework/packages/abstract-core/src/objects/pool/pool_metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl fmt::Display for PoolMetadata {
101101
write!(
102102
f,
103103
"{}",
104-
vec![self.dex.clone(), assets_str, pool_type_str].join(ATTTRIBUTE_SEPARATOR)
104+
[self.dex.clone(), assets_str, pool_type_str].join(ATTTRIBUTE_SEPARATOR)
105105
)
106106
}
107107
}

0 commit comments

Comments
 (0)