Skip to content

Commit 77615f0

Browse files
committed
refactor: cargo clippy
1 parent 41f3716 commit 77615f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crypto/src/base64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ pub fn encode_crypto_base64(src: &[u8]) -> String {
88

99
pub fn decode_crypto_base64(src: &str) -> CryptoResult<Vec<u8>> {
1010
let src = src.replace('+', "-").replace('/', "_");
11-
Ok(decode(&src)?)
11+
Ok(decode(src)?)
1212
}

crypto/src/weapi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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="#

engines/ytdl/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)