From f1463a201c151c009c224d00a9ec3a01299f6db2 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Tue, 18 Jun 2024 11:20:26 +0200 Subject: [PATCH] fix: fix clippy lint --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.rs b/src/handlers.rs index a35a9c86..c50a7efb 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -467,7 +467,7 @@ where return Ok(rust_handler(py, handler)); } if obj.is_callable() { - return python_handler(py, &obj, py.None()); + return python_handler(py, obj, py.None()); } else if let Ok((cb, handler)) = obj.extract::<(Bound, PyObject)>() { if cb.is_callable() { return python_handler(py, &cb, handler);