Skip to content

Commit b971af4

Browse files
committed
Some clippy fixes
1 parent 3c17e26 commit b971af4

File tree

12 files changed

+22
-19
lines changed

12 files changed

+22
-19
lines changed

framework/packages/abstract-client/src/builder.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,29 @@ use abstract_std::objects::{
99
use cw_asset::AssetInfoUnchecked;
1010
use cw_orch::prelude::*;
1111

12-
use self::cw20_builder::Cw20Builder;
13-
use crate::{
14-
client::{AbstractClient, AbstractClientResult},
15-
Environment,
16-
};
12+
use crate::client::{AbstractClient, AbstractClientResult};
1713

1814
impl<Chain: CwEnv> AbstractClient<Chain> {
1915
/// Abstract client builder
2016
pub fn builder(chain: Chain) -> AbstractClientBuilder<Chain> {
2117
AbstractClientBuilder::new(chain)
2218
}
2319

20+
#[cfg(feature = "test-utils")]
2421
/// Cw20 contract builder
2522
pub fn cw20_builder(
2623
&self,
2724
name: impl Into<String>,
2825
symbol: impl Into<String>,
2926
decimals: u8,
30-
) -> Cw20Builder<Chain> {
31-
Cw20Builder::new(self.environment(), name.into(), symbol.into(), decimals)
27+
) -> self::cw20_builder::Cw20Builder<Chain> {
28+
use crate::Environment;
29+
self::cw20_builder::Cw20Builder::new(
30+
self.environment(),
31+
name.into(),
32+
symbol.into(),
33+
decimals,
34+
)
3235
}
3336
}
3437

framework/packages/abstract-std/src/native/ibc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub struct ICS20PacketIdentifier {
228228
pub sequence: u64,
229229
}
230230

231-
impl<'a> PrimaryKey<'a> for ICS20PacketIdentifier {
231+
impl PrimaryKey<'_> for ICS20PacketIdentifier {
232232
/// channel id
233233
type Prefix = String;
234234

framework/packages/abstract-std/src/objects/account/account_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl FromStr for AccountId {
136136
}
137137
}
138138

139-
impl<'a> PrimaryKey<'a> for AccountId {
139+
impl PrimaryKey<'_> for AccountId {
140140
type Prefix = AccountTrace;
141141

142142
type SubPrefix = ();

framework/packages/abstract-std/src/objects/account/account_trace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl KeyDeserialize for &AccountTrace {
2626
}
2727
}
2828

29-
impl<'a> PrimaryKey<'a> for AccountTrace {
29+
impl PrimaryKey<'_> for AccountTrace {
3030
type Prefix = ();
3131
type SubPrefix = ();
3232
type Suffix = Self;

framework/packages/abstract-std/src/objects/entry/asset_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl Display for AssetEntry {
7979
}
8080
}
8181

82-
impl<'a> PrimaryKey<'a> for AssetEntry {
82+
impl PrimaryKey<'_> for AssetEntry {
8383
type Prefix = ();
8484

8585
type SubPrefix = ();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Display for ChannelEntry {
5757
}
5858
}
5959

60-
impl<'a> PrimaryKey<'a> for &ChannelEntry {
60+
impl PrimaryKey<'_> for &ChannelEntry {
6161
type Prefix = String;
6262

6363
type SubPrefix = ();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Display for ContractEntry {
8181
}
8282
}
8383

84-
impl<'a> PrimaryKey<'a> for &ContractEntry {
84+
impl PrimaryKey<'_> for &ContractEntry {
8585
type Prefix = String;
8686

8787
type SubPrefix = ();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl ModuleInfo {
143143
}
144144
}
145145

146-
impl<'a> PrimaryKey<'a> for &ModuleInfo {
146+
impl PrimaryKey<'_> for &ModuleInfo {
147147
/// (namespace, name)
148148
type Prefix = (Namespace, String);
149149

@@ -300,7 +300,7 @@ impl TryInto<Version> for ModuleVersion {
300300
}
301301
}
302302

303-
impl<'a> PrimaryKey<'a> for ModuleVersion {
303+
impl PrimaryKey<'_> for ModuleVersion {
304304
type Prefix = ();
305305

306306
type SubPrefix = ();

framework/packages/abstract-std/src/objects/namespace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl KeyDeserialize for &Namespace {
8686
}
8787
}
8888

89-
impl<'a> PrimaryKey<'a> for Namespace {
89+
impl PrimaryKey<'_> for Namespace {
9090
type Prefix = ();
9191

9292
type SubPrefix = ();

framework/packages/abstract-std/src/objects/pool/unique_pool_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Display for UniquePoolId {
3636
}
3737
}
3838

39-
impl<'a> PrimaryKey<'a> for UniquePoolId {
39+
impl PrimaryKey<'_> for UniquePoolId {
4040
type Prefix = ();
4141
type SubPrefix = ();
4242
type Suffix = Self;

framework/packages/abstract-std/src/objects/truncated_chain_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl FromStr for TruncatedChainId {
100100
}
101101
}
102102

103-
impl<'a> PrimaryKey<'a> for &TruncatedChainId {
103+
impl PrimaryKey<'_> for &TruncatedChainId {
104104
type Prefix = ();
105105

106106
type SubPrefix = ();

interchain/framework-clone-testing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cw-orch-clone-testing = { workspace = true }
1515

1616
abstract-account = { workspace = true }
1717
abstract-app = { workspace = true, features = ["test-utils"] }
18-
abstract-client = { workspace = true }
18+
abstract-client = { workspace = true, features = ["test-utils"] }
1919
abstract-integration-tests = { path = "../../framework/packages/abstract-integration-tests" }
2020
abstract-interface = { workspace = true, features = ["daemon"] }
2121
abstract-std = { workspace = true }

0 commit comments

Comments
 (0)