From 269ee9c8dae8f5b19646d61def229e470afc5744 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sat, 19 Sep 2020 16:01:53 -0500 Subject: [PATCH] Fix error with new deps --- vm/src/stdlib/binascii.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm/src/stdlib/binascii.rs b/vm/src/stdlib/binascii.rs index a76e0e590..fb32cbe7b 100644 --- a/vm/src/stdlib/binascii.rs +++ b/vm/src/stdlib/binascii.rs @@ -135,7 +135,8 @@ mod decl { #[pyfunction] fn b2a_base64(data: PyBytesLike, NewlineArg { newline }: NewlineArg) -> Vec { - 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'); }