Remove useless and_then

This commit is contained in:
Jeong YunWon committed 2023-03-18 22:10:25 +09:00
1 parent ad29fbdd55
commit 12c96d06e4
12 files changed
+92 -110

No files matched your search

+1 -1
View File
@@ -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())
}
}