[router] add cargo clippy in CI and fix-up linting errors (#9242)
This commit is contained in:
@@ -137,8 +137,7 @@ mod tests {
|
||||
fn test_worker_result_type_alias() {
|
||||
// Test Ok variant
|
||||
let result: WorkerResult<i32> = Ok(42);
|
||||
assert!(result.is_ok());
|
||||
assert_eq!(result.unwrap(), 42);
|
||||
assert!(matches!(result, Ok(42)));
|
||||
|
||||
// Test Err variant
|
||||
let error = WorkerError::WorkerNotFound {
|
||||
|
||||
Reference in New Issue
Block a user