File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ pub fn encode_crypto_base64(src: &[u8]) -> String {
88
99pub fn decode_crypto_base64 ( src : & str ) -> CryptoResult < Vec < u8 > > {
1010 let src = src. replace ( '+' , "-" ) . replace ( '/' , "_" ) ;
11- Ok ( decode ( & src) ?)
11+ Ok ( decode ( src) ?)
1212}
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ mod tests {
134134 let encrypted_bytes = encrypt_with_weapi_rsa ( b"a1b2c3d4" , & mut buf) . unwrap ( ) ;
135135 assert_eq ! ( encrypted_bytes, 128 ) ;
136136
137- let encrypted_base64 = base64:: encode ( & buf) ;
137+ let encrypted_base64 = base64:: encode ( buf) ;
138138 assert_eq ! (
139139 encrypted_base64,
140140 r#"nknIprgQgDE2Ana3dka2qYhwE4ch/My68kTk0pGZmtkeWCTslpn9Co32as7sd5fyitf5lyXwMff/g/kDzaz6IVA/tMAtbbzkgWPDMivRy5b8z1Ypd7UV7r6aM6OgNT1bFjPo4jEAkmUl6UxCBAsrsMaaYqmW6rZl0BdJdb0/Tq0="#
Original file line number Diff line number Diff line change @@ -141,11 +141,11 @@ async fn fetch_from_youtube(
141141 debug ! ( "Receiving the search result from {exe}…" ) ;
142142
143143 // <cmd> -f bestaudio --dumpjson
144- cmd. args ( & [ "-f" , "bestaudio" , "--dump-json" ] ) ;
144+ cmd. args ( [ "-f" , "bestaudio" , "--dump-json" ] ) ;
145145
146146 // --proxy <proxy>
147147 if let Some ( proxy) = proxy {
148- cmd. args ( & [ "--proxy" , proxy] ) ;
148+ cmd. args ( [ "--proxy" , proxy] ) ;
149149 }
150150
151151 // search query
You can’t perform that action at this time.
0 commit comments