Commit 8444b50
committed
fix(model-library): remove artifact resolver unwrap
Replace the guarded unwrap in selected-artifact path resolution with direct iterator matching so production request handling stays panic-free while preserving zero, one, and many match behavior.
Record the Pantograph standards cleanup in the artifact load-target plan issue register.
Verification: cargo fmt --manifest-path rust/Cargo.toml --all; cargo test --manifest-path rust/Cargo.toml -p pumas-library read_only_library; cargo test --manifest-path rust/Cargo.toml -p pumas-library artifact_owner_fresh; cargo test --manifest-path rust/Cargo.toml -p pumas-library --test artifact_load_target_contract_fixtures; cargo check --manifest-path rust/Cargo.toml -p pumas-library; git diff --check1 parent 6a0df9c commit 8444b50
2 files changed
Lines changed: 10 additions & 6 deletions
File tree
- docs/plans/pumas-artifact-load-target-resolution
- rust/crates/pumas-core/src/model_library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
0 commit comments