File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ pub fn encode_crypto_base64(src: &[u8]) -> String {
8
8
9
9
pub fn decode_crypto_base64 ( src : & str ) -> CryptoResult < Vec < u8 > > {
10
10
let src = src. replace ( '+' , "-" ) . replace ( '/' , "_" ) ;
11
- Ok ( decode ( & src) ?)
11
+ Ok ( decode ( src) ?)
12
12
}
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ mod tests {
134
134
let encrypted_bytes = encrypt_with_weapi_rsa ( b"a1b2c3d4" , & mut buf) . unwrap ( ) ;
135
135
assert_eq ! ( encrypted_bytes, 128 ) ;
136
136
137
- let encrypted_base64 = base64:: encode ( & buf) ;
137
+ let encrypted_base64 = base64:: encode ( buf) ;
138
138
assert_eq ! (
139
139
encrypted_base64,
140
140
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(
141
141
debug ! ( "Receiving the search result from {exe}…" ) ;
142
142
143
143
// <cmd> -f bestaudio --dumpjson
144
- cmd. args ( & [ "-f" , "bestaudio" , "--dump-json" ] ) ;
144
+ cmd. args ( [ "-f" , "bestaudio" , "--dump-json" ] ) ;
145
145
146
146
// --proxy <proxy>
147
147
if let Some ( proxy) = proxy {
148
- cmd. args ( & [ "--proxy" , proxy] ) ;
148
+ cmd. args ( [ "--proxy" , proxy] ) ;
149
149
}
150
150
151
151
// search query
You can’t perform that action at this time.
0 commit comments