Skip to content

Commit 36c6c20

Browse files
committed
style(router): drop unnecessary crate:: prefix on RouterError matcher
`RouterError` is already imported at the top of the file, so the two test-side `matches!(result, Err(crate::RouterError::UpstreamProtocol(_)))` uses trip clippy's `unused_qualifications` under `-D warnings`. Drop the prefix on both sites; functional behaviour is unchanged. These warnings predate this PR (originated in 25abc9e on 2026-06-07) but NVIDIA's `rust:lint` re-runs because this PR touches `backend.rs`, so the lint regression surfaces here. Signed-off-by: st-gr <38470677+st-gr@users.noreply.github.com>
1 parent 4d66bc0 commit 36c6c20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/openshell-router/src/backend.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ mod tests {
10361036
.await;
10371037

10381038
assert!(
1039-
matches!(result, Err(crate::RouterError::UpstreamProtocol(_))),
1039+
matches!(result, Err(RouterError::UpstreamProtocol(_))),
10401040
"over-cap response must fail as UpstreamProtocol, got: {result:?}"
10411041
);
10421042
}
@@ -1081,7 +1081,7 @@ mod tests {
10811081
);
10821082
let result = super::read_capped_response_body(response, 8).await;
10831083
assert!(
1084-
matches!(result, Err(crate::RouterError::UpstreamProtocol(_))),
1084+
matches!(result, Err(RouterError::UpstreamProtocol(_))),
10851085
"over-cap chunked body must be rejected by the loop, got: {result:?}"
10861086
);
10871087
}

0 commit comments

Comments
 (0)