fix(#2352): allow too_many_lines on the HostRequest dispatch router
This commit is contained in:
parent
a3c916813b
commit
756e850681
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue