Commit 954bf52
chore(simplify): accept IntoIterator in build_transcriptome_records_pe
Caller had a `Vec<&Box<PairedAlignment>>` and was building a throwaway
`Vec<&PairedAlignment>` to match the function's `&[&PairedAlignment]`
signature. Change the signature to `IntoIterator<Item = &PairedAlignment>`
and call `.iter().map(|b| b.as_ref())` at the call-site, eliminating the
intermediate Vec allocation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent db89ed3 commit 954bf52
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
565 | | - | |
| 564 | + | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
576 | 579 | | |
577 | 580 | | |
578 | 581 | | |
579 | 582 | | |
580 | | - | |
| 583 | + | |
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
| |||
1370 | 1373 | | |
1371 | 1374 | | |
1372 | 1375 | | |
1373 | | - | |
1374 | | - | |
1375 | 1376 | | |
1376 | | - | |
| 1377 | + | |
1377 | 1378 | | |
1378 | 1379 | | |
1379 | 1380 | | |
| |||
0 commit comments