mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Remove useless and_then
This commit is contained in:
1 parent
ad29fbdd55
commit
12c96d06e4
12 files changed
+92
-110
No files matched your search
@@ -809,7 +809,7 @@ mod _sqlite {
|
||||
type Args = ConnectArgs;
|
||||
|
||||
fn py_new(cls: PyTypeRef, args: Self::Args, vm: &VirtualMachine) -> PyResult {
|
||||
Self::new(args, vm).and_then(|x| x.into_ref_with_type(vm, cls).map(Into::into))
|
||||
Ok(Self::new(args, vm)?.into_ref_with_type(vm, cls)?.into())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user