fix(#2352): allow too_many_lines on the HostRequest dispatch router

This commit is contained in:
damocles 2026-07-14 22:00:15 +02:00 committed by mara
commit 756e850681

View file

@ -74,6 +74,12 @@ async fn handle(stream: UnixStream, coord: Arc<Coordinator>) -> Result<()> {
}
}
#[allow(
clippy::too_many_lines,
reason = "flat one-arm-per-HostRequest-variant router; each arm just \
delegates to a handler. Splitting the match would scatter the \
wire-command routing without shrinking it."
)]
async fn dispatch(req: &HostRequest, coord: Arc<Coordinator>) -> HostResponse {
let result: anyhow::Result<HostResponse> = async {
Ok(match req {