From d9971e9fadcfc17743115ad4754eba37623aebd0 Mon Sep 17 00:00:00 2001 From: "glm-5.3-flash" Date: Mon, 31 Aug 2026 00:33:59 +0000 Subject: [PATCH] fix(adapters): zip-iterate reject_collisions, drop asserts (JS-03) assert_eq! in library code was a panic-family residue in the import collision check (review 002 JS-03). The three vectors are built in lockstep by import(); zipping them preserves the pairwise walk without the panic path. --- src/adapters/from_openapi.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/adapters/from_openapi.rs b/src/adapters/from_openapi.rs index 994ad48..4f9de5a 100644 --- a/src/adapters/from_openapi.rs +++ b/src/adapters/from_openapi.rs @@ -71,8 +71,6 @@ fn reject_collisions( paths: Vec, routes: Vec<(String, String)>, ) -> Result<(), AdapterError> { - assert_eq!(op_ids.len(), routes.len()); - assert_eq!(op_ids.len(), paths.len()); let mut seen_names: HashMap<&str, &str> = HashMap::new(); let mut seen_routes: HashMap<&(String, String), &str> = HashMap::new(); for ((op_id, path), route) in op_ids.iter().zip(paths.iter()).zip(routes.iter()) {