Add an exception for clippy::arc_with_non_send_sync.

We're doing this deliberately, I believe.
This commit is contained in:
Nick Mathewson 2023-07-07 13:47:56 -04:00 committed by Ian Jackson
parent 2db3e73434
commit 7e78224460
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ struct Inner<SpawnR, SleepR, TcpR, TlsR, UdpR> {
impl<SpawnR, SleepR, TcpR, TlsR, UdpR> CompoundRuntime<SpawnR, SleepR, TcpR, TlsR, UdpR> {
/// Construct a new CompoundRuntime from its components.
pub fn new(spawn: SpawnR, sleep: SleepR, tcp: TcpR, tls: TlsR, udp: UdpR) -> Self {
#[allow(clippy::arc_with_non_send_sync)]
CompoundRuntime {
inner: Arc::new(Inner {
spawn,