From 76fa9ced91b1170b0d3a355c8de58a7f9d923b07 Mon Sep 17 00:00:00 2001 From: igalshilman Date: Tue, 21 Oct 2025 15:12:24 +0200 Subject: [PATCH] Fix lint warning --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index efd0bdf..ab94ae4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,10 +71,10 @@ impl From for PyResponseHead { } } -fn take_output_result_into_py( - py: Python, +fn take_output_result_into_py<'py>( + py: Python<'py>, take_output_result: TakeOutputResult, -) -> Bound<'_, PyAny> { +) -> Bound<'py, PyAny> { match take_output_result { TakeOutputResult::Buffer(b) => PyBytes::new(py, &b).into_any(), TakeOutputResult::EOF => PyNone::get(py).to_owned().into_any(), @@ -461,7 +461,7 @@ impl PyVM { fn sys_sleep( mut self_: PyRefMut<'_, Self>, millis: u64, - name: Option + name: Option, ) -> Result { let now = SystemTime::now() .duration_since(SystemTime::UNIX_EPOCH)