Skip to content

Commit 81a3d76

Browse files
maxholmanclaude
andcommitted
fix(lint): add REASON to handle_message allow, use explicit match variant
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 585bbe6 commit 81a3d76

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/core/src/transport/protocol.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ impl ControlChannels {
225225
/// Process a single incoming `ControlMessage`.
226226
///
227227
/// Returns `Some(exit_reason)` if the loop should terminate.
228+
// REASON: dispatches all control message variants with inline handling
229+
#[allow(clippy::too_many_lines)]
228230
async fn handle_message(
229231
&mut self,
230232
stream: &mut BoxBiStream,
@@ -311,6 +313,7 @@ impl ControlChannels {
311313
announcement.name,
312314
announcement.addr,
313315
role,
316+
wallhack_wire::data::Capabilities::default(),
314317
crate::control::peers::ConnectionSide::Accept,
315318
);
316319
}
@@ -322,7 +325,7 @@ impl ControlChannels {
322325
);
323326
registry.unregister(&announcement.name);
324327
}
325-
_ => {}
328+
peer_announcement::Event::Unspecified => {}
326329
}
327330
}
328331
}

0 commit comments

Comments
 (0)