Skip to content

Commit 611e755

Browse files
committed
Fix some uncaught clippy warnings.
1 parent 7f0ba0c commit 611e755

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

stdlib/src/ssl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ mod _ssl {
753753
vm: &VirtualMachine,
754754
) -> PyResult<PySslSocket> {
755755
let mut ssl = zelf
756-
.exec_ctx(|ctx| ssl::Ssl::new(ctx))
756+
.exec_ctx(ssl::Ssl::new)
757757
.map_err(|e| convert_openssl_error(vm, e))?;
758758

759759
let socket_type = if args.server_side {

vm/src/stdlib/pystruct.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ pub(crate) mod _struct {
238238

239239
#[derive(Debug, Clone)]
240240
pub(crate) struct FormatSpec {
241+
#[allow(dead_code)]
241242
endianness: Endianness,
242243
codes: Vec<FormatCode>,
243244
size: usize,

vm/src/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ impl VirtualMachine {
11541154
.map(|obj| func(obj.clone()))
11551155
.collect()
11561156
} else {
1157-
self.map_pyiter(value, |obj| func(obj))
1157+
self.map_pyiter(value, func)
11581158
}
11591159
}
11601160

0 commit comments

Comments
 (0)