pubgrub-rs / pubgrub

PubGrub version solving algorithm implemented in Rust
https://pubgrub-rs.github.io/pubgrub/pubgrub/
Mozilla Public License 2.0
337 stars 30 forks source link

refactor: two small cleanups that were bothering me. #147

Closed Eh2406 closed 7 months ago

Eh2406 commented 7 months ago

These are two small things that I keep running across and are off-topic for other PR's, and two small for their own PR. But if it's ever getting it fixed... here is a PR.

  1. as_ref is stable as of 1.65
  2. <1, >=2, <=2, >3 is tricky to parse visually. My brain keeps trying to figure out what (<1 and >=2) or (<=2 and >3) means. The core issue is that , sometimes means and and other times means or. So this changes to using | for or.
Eh2406 commented 7 months ago

Sorry for the spam, I'm taking this trivial PR as an opportunity to explore the new CI merged queue set up.