@@ -321,17 +321,17 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
321321 /// Helper function for Wsh descriptor
322322 fn ext_check_wsh ( wsh : & Wsh < Pk > , params : & ExtParams ) -> Result < ( ) , AnalysisError > {
323323 match wsh. as_inner ( ) {
324- WshInner :: SortedMulti ( ref smv ) => Ok ( ( ) ) ,
324+ WshInner :: SortedMulti ( _ ) => Ok ( ( ) ) ,
325325 WshInner :: Ms ( ref ms) => ms. ext_check ( params) ,
326326 }
327327 }
328328
329329 /// Helper function for Sh descriptor
330330 fn ext_check_sh ( sh : & Sh < Pk > , params : & ExtParams ) -> Result < ( ) , AnalysisError > {
331331 match sh. as_inner ( ) {
332- ShInner :: Wsh ( ref wsh) => Self :: ext_check_wsh ( & wsh, params) ,
332+ ShInner :: Wsh ( ref wsh) => Self :: ext_check_wsh ( wsh, params) ,
333333 ShInner :: Wpkh ( _) => Ok ( ( ) ) ,
334- ShInner :: SortedMulti ( ref smv ) => Ok ( ( ) ) ,
334+ ShInner :: SortedMulti ( _ ) => Ok ( ( ) ) ,
335335 ShInner :: Ms ( ref ms) => ms. ext_check ( params) ,
336336 }
337337 }
@@ -341,9 +341,9 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
341341 match * self {
342342 Descriptor :: Bare ( ref bare) => bare. as_inner ( ) . ext_check ( params) ,
343343 Descriptor :: Pkh ( _) => Ok ( ( ) ) ,
344- Descriptor :: Wpkh ( ref wpkh ) => Ok ( ( ) ) ,
345- Descriptor :: Wsh ( ref wsh) => Self :: ext_check_wsh ( & wsh, params) ,
346- Descriptor :: Sh ( ref sh) => Self :: ext_check_sh ( & sh, params) ,
344+ Descriptor :: Wpkh ( _ ) => Ok ( ( ) ) ,
345+ Descriptor :: Wsh ( ref wsh) => Self :: ext_check_wsh ( wsh, params) ,
346+ Descriptor :: Sh ( ref sh) => Self :: ext_check_sh ( sh, params) ,
347347 Descriptor :: Tr ( ref tr) => tr. ext_check ( params) ,
348348 }
349349 }
0 commit comments