mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix clippy warning
This commit is contained in:
@@ -1134,7 +1134,7 @@ where
|
||||
fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self> {
|
||||
A::try_from_object(vm, obj.clone())
|
||||
.map(Either::A)
|
||||
.or(B::try_from_object(vm, obj.clone()).map(Either::B))
|
||||
.or_else(|_| B::try_from_object(vm, obj.clone()).map(Either::B))
|
||||
.map_err(|_| vm.new_type_error(format!("unexpected type {}", obj.class())))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user