fnm
fnm copied to clipboard
fix: list-remote --filter --latest panics when filter has no results
This PR checks for results before modifying the all_versions
vector, and opts for .swap()
and .truncate()
over .drain()
to reduce overhead and improve efficiency.