mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix some uncaught clippy warnings.
This commit is contained in:
1 parent
7f0ba0c176
commit
611e755599
3 files changed
+3
-2
No files matched your search
+1
-1
@@ -753,7 +753,7 @@ mod _ssl {
|
||||
vm: &VirtualMachine,
|
||||
) -> PyResult<PySslSocket> {
|
||||
let mut ssl = zelf
|
||||
.exec_ctx(|ctx| ssl::Ssl::new(ctx))
|
||||
.exec_ctx(ssl::Ssl::new)
|
||||
.map_err(|e| convert_openssl_error(vm, e))?;
|
||||
|
||||
let socket_type = if args.server_side {
|
||||
|
||||
@@ -238,6 +238,7 @@ pub(crate) mod _struct {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct FormatSpec {
|
||||
#[allow(dead_code)]
|
||||
endianness: Endianness,
|
||||
codes: Vec<FormatCode>,
|
||||
size: usize,
|
||||
|
||||
+1
-1
@@ -1154,7 +1154,7 @@ impl VirtualMachine {
|
||||
.map(|obj| func(obj.clone()))
|
||||
.collect()
|
||||
} else {
|
||||
self.map_pyiter(value, |obj| func(obj))
|
||||
self.map_pyiter(value, func)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user