Skip to content

Commit 02e4922

Browse files
committed
fix clippy warns
1 parent 8166592 commit 02e4922

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/profiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mod imp {
33
use std::cell::RefCell;
44
use std::sync::{Mutex, OnceLock};
55

6-
use pyo3::exceptions::{PyRuntimeError, PyValueError};
6+
use pyo3::exceptions::PyRuntimeError;
77
use pyo3::prelude::*;
88
use tracy_client::{Client, Span};
99

@@ -64,7 +64,7 @@ mod imp {
6464
SESSION_SPAN.with(|slot| {
6565
slot.borrow_mut().take();
6666
});
67-
drop(active.client);
67+
let ActiveProfiler { client: _client } = active;
6868
Ok(())
6969
}
7070
}

src/python_api.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,6 +2262,10 @@ impl PyLoop {
22622262
}
22632263

22642264
#[pyo3(signature=(transport, protocol, sslcontext, *, server_side=false, server_hostname=None, ssl_handshake_timeout=None, ssl_shutdown_timeout=None))]
2265+
#[expect(
2266+
clippy::too_many_arguments,
2267+
reason = "Mirrors asyncio loop.start_tls()"
2268+
)]
22652269
fn start_tls(
22662270
slf: Py<Self>,
22672271
py: Python<'_>,

0 commit comments

Comments
 (0)