Fix error with new deps

This commit is contained in:
Noah committed 2020-09-19 21:27:50 -05:00
1 parent 24acbc5e23
commit 269ee9c8da
1 file changed
+2 -1
+2 -1
View File
@@ -135,7 +135,8 @@ mod decl {
#[pyfunction]
fn b2a_base64(data: PyBytesLike, NewlineArg { newline }: NewlineArg) -> Vec<u8> {
let mut encoded = data.with_ref(base64::encode).into_bytes();
#[allow(clippy::redundant_closure)] // https://stackoverflow.com/questions/63916821
let mut encoded = data.with_ref(|b| base64::encode(b)).into_bytes();
if newline {
encoded.push(b'\n');
}