@@ -521,16 +521,16 @@ impl<C: DeserializeOwned> MockQuerier<C> {
521
521
}
522
522
}
523
523
524
- pub fn update_wasm < WH : ' static > ( & mut self , handler : WH )
524
+ pub fn update_wasm < WH > ( & mut self , handler : WH )
525
525
where
526
- WH : Fn ( & WasmQuery ) -> QuerierResult ,
526
+ WH : Fn ( & WasmQuery ) -> QuerierResult + ' static ,
527
527
{
528
528
self . wasm . update_handler ( handler)
529
529
}
530
530
531
- pub fn with_custom_handler < CH : ' static > ( mut self , handler : CH ) -> Self
531
+ pub fn with_custom_handler < CH > ( mut self , handler : CH ) -> Self
532
532
where
533
- CH : Fn ( & C ) -> MockQuerierCustomHandlerResult ,
533
+ CH : Fn ( & C ) -> MockQuerierCustomHandlerResult + ' static ,
534
534
{
535
535
self . custom_handler = Box :: from ( handler) ;
536
536
self
@@ -598,9 +598,9 @@ impl WasmQuerier {
598
598
Self { handler }
599
599
}
600
600
601
- fn update_handler < WH : ' static > ( & mut self , handler : WH )
601
+ fn update_handler < WH > ( & mut self , handler : WH )
602
602
where
603
- WH : Fn ( & WasmQuery ) -> QuerierResult ,
603
+ WH : Fn ( & WasmQuery ) -> QuerierResult + ' static ,
604
604
{
605
605
self . handler = Box :: from ( handler)
606
606
}
@@ -1116,10 +1116,7 @@ mod tests {
1116
1116
use super :: * ;
1117
1117
#[ cfg( feature = "cosmwasm_1_3" ) ]
1118
1118
use crate :: DenomUnit ;
1119
- use crate :: {
1120
- coin, coins, from_json, instantiate2_address, to_json_binary, ContractInfoResponse ,
1121
- HexBinary , Response ,
1122
- } ;
1119
+ use crate :: { coin, coins, instantiate2_address, ContractInfoResponse , HexBinary , Response } ;
1123
1120
#[ cfg( feature = "staking" ) ]
1124
1121
use crate :: { Decimal , Delegation } ;
1125
1122
use hex_literal:: hex;
0 commit comments