@@ -157,15 +157,15 @@ struct StrDescPubKeyTranslator<'a>(usize, &'a PubData);
157157
158158impl < ' a > Translator < String , DescriptorPublicKey , ( ) > for StrDescPubKeyTranslator < ' a > {
159159 fn pk ( & mut self , pk_str : & String ) -> Result < DescriptorPublicKey , ( ) > {
160- let avail = !pk_str. ends_with ( "!" ) ;
160+ let avail = !pk_str. ends_with ( '!' ) ;
161161 if avail {
162162 self . 0 = self . 0 + 1 ;
163- if pk_str. starts_with ( "K" ) {
163+ if pk_str. starts_with ( 'K' ) {
164164 Ok ( DescriptorPublicKey :: Single ( SinglePub {
165165 origin : None ,
166166 key : SinglePubKey :: FullKey ( self . 1 . pks [ self . 0 ] ) ,
167167 } ) )
168- } else if pk_str. starts_with ( "X" ) {
168+ } else if pk_str. starts_with ( 'X' ) {
169169 Ok ( DescriptorPublicKey :: Single ( SinglePub {
170170 origin : None ,
171171 key : SinglePubKey :: XOnly ( self . 1 . x_only_pks [ self . 0 ] ) ,
@@ -210,15 +210,15 @@ struct StrTranslatorLoose<'a>(usize, &'a PubData);
210210
211211impl < ' a > Translator < String , DescriptorPublicKey , ( ) > for StrTranslatorLoose < ' a > {
212212 fn pk ( & mut self , pk_str : & String ) -> Result < DescriptorPublicKey , ( ) > {
213- let avail = !pk_str. ends_with ( "!" ) ;
213+ let avail = !pk_str. ends_with ( '!' ) ;
214214 if avail {
215215 self . 0 = self . 0 + 1 ;
216- if pk_str. starts_with ( "K" ) {
216+ if pk_str. starts_with ( 'K' ) {
217217 Ok ( DescriptorPublicKey :: Single ( SinglePub {
218218 origin : None ,
219219 key : SinglePubKey :: FullKey ( self . 1 . pks [ self . 0 ] ) ,
220220 } ) )
221- } else if pk_str. starts_with ( "X" ) {
221+ } else if pk_str. starts_with ( 'X' ) {
222222 Ok ( DescriptorPublicKey :: Single ( SinglePub {
223223 origin : None ,
224224 key : SinglePubKey :: XOnly ( self . 1 . x_only_pks [ self . 0 ] ) ,
0 commit comments