mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T>
This commit is contained in:
@@ -722,7 +722,7 @@ pub fn single_or_tuple_any<T, F, M>(
|
||||
where
|
||||
T: TryFromObject,
|
||||
F: Fn(&T) -> PyResult<bool>,
|
||||
M: Fn(&PyObjectRef) -> String,
|
||||
M: Fn(&crate::PyObj) -> String,
|
||||
{
|
||||
match T::try_from_object(vm, obj.clone()) {
|
||||
Ok(single) => (predicate)(&single),
|
||||
|
||||
Reference in New Issue
Block a user