Skip to content

Commit 22aaa6f

Browse files
committed
Use where consistently for long trait restriction lists
1 parent 0223d30 commit 22aaa6f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

packages/std/src/results/cosmos_msg.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,20 @@ where
183183
})
184184
}
185185

186-
impl<T: Clone + fmt::Debug + PartialEq + JsonSchema> From<BankMsg> for CosmosMsg<T> {
186+
impl<T> From<BankMsg> for CosmosMsg<T>
187+
where
188+
T: Clone + fmt::Debug + PartialEq + JsonSchema,
189+
{
187190
fn from(msg: BankMsg) -> Self {
188191
CosmosMsg::Bank(msg)
189192
}
190193
}
191194

192195
#[cfg(feature = "staking")]
193-
impl<T: Clone + fmt::Debug + PartialEq + JsonSchema> From<StakingMsg> for CosmosMsg<T> {
196+
impl<T> From<StakingMsg> for CosmosMsg<T>
197+
where
198+
T: Clone + fmt::Debug + PartialEq + JsonSchema,
199+
{
194200
fn from(msg: StakingMsg) -> Self {
195201
CosmosMsg::Staking(msg)
196202
}
@@ -205,14 +211,20 @@ where
205211
}
206212
}
207213

208-
impl<T: Clone + fmt::Debug + PartialEq + JsonSchema> From<WasmMsg> for CosmosMsg<T> {
214+
impl<T> From<WasmMsg> for CosmosMsg<T>
215+
where
216+
T: Clone + fmt::Debug + PartialEq + JsonSchema,
217+
{
209218
fn from(msg: WasmMsg) -> Self {
210219
CosmosMsg::Wasm(msg)
211220
}
212221
}
213222

214223
#[cfg(feature = "stargate")]
215-
impl<T: Clone + fmt::Debug + PartialEq + JsonSchema> From<IbcMsg> for CosmosMsg<T> {
224+
impl<T> From<IbcMsg> for CosmosMsg<T>
225+
where
226+
T: Clone + fmt::Debug + PartialEq + JsonSchema,
227+
{
216228
fn from(msg: IbcMsg) -> Self {
217229
CosmosMsg::Ibc(msg)
218230
}

0 commit comments

Comments
 (0)