@@ -521,16 +521,16 @@ impl<C: DeserializeOwned> MockQuerier<C> {
521521 }
522522 }
523523
524- pub fn update_wasm < WH : ' static > ( & mut self , handler : WH )
524+ pub fn update_wasm < WH > ( & mut self , handler : WH )
525525 where
526- WH : Fn ( & WasmQuery ) -> QuerierResult ,
526+ WH : Fn ( & WasmQuery ) -> QuerierResult + ' static ,
527527 {
528528 self . wasm . update_handler ( handler)
529529 }
530530
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
532532 where
533- CH : Fn ( & C ) -> MockQuerierCustomHandlerResult ,
533+ CH : Fn ( & C ) -> MockQuerierCustomHandlerResult + ' static ,
534534 {
535535 self . custom_handler = Box :: from ( handler) ;
536536 self
@@ -598,9 +598,9 @@ impl WasmQuerier {
598598 Self { handler }
599599 }
600600
601- fn update_handler < WH : ' static > ( & mut self , handler : WH )
601+ fn update_handler < WH > ( & mut self , handler : WH )
602602 where
603- WH : Fn ( & WasmQuery ) -> QuerierResult ,
603+ WH : Fn ( & WasmQuery ) -> QuerierResult + ' static ,
604604 {
605605 self . handler = Box :: from ( handler)
606606 }
@@ -1116,10 +1116,7 @@ mod tests {
11161116 use super :: * ;
11171117 #[ cfg( feature = "cosmwasm_1_3" ) ]
11181118 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 } ;
11231120 #[ cfg( feature = "staking" ) ]
11241121 use crate :: { Decimal , Delegation } ;
11251122 use hex_literal:: hex;
0 commit comments