mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix error with new deps
This commit is contained in:
1 file changed
+2
-1
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user