Skip to content

Commit 08fca2f

Browse files
Lewis-Eclaude
andcommitted
fix: collapse nested if-let flagged by clippy on windows
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 9365904 commit 08fca2f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/datadog-trace-agent/src/mini_agent.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ impl MiniAgent {
277277
error!("TCP accept loop failed during shutdown: {e:?}");
278278
}
279279
#[cfg(all(windows, feature = "windows-pipes"))]
280-
if let Some(h) = pipe_handle.as_mut() {
281-
if let Err(e) = h.await {
282-
error!("Named pipe accept loop failed during shutdown: {e:?}");
283-
}
280+
if let Some(h) = pipe_handle.as_mut()
281+
&& let Err(e) = h.await
282+
{
283+
error!("Named pipe accept loop failed during shutdown: {e:?}");
284284
}
285285
// Now all handlers have written to the channels. Force-flush
286286
// the stats flusher.

0 commit comments

Comments
 (0)