mainmatter / cargo-autoinherit

(Auto)DRY for your Rust dependencies
Apache License 2.0
124 stars 8 forks source link

fix: as_simple_carret should check for empty compartors before borrowing #5

Closed ncatelli closed 5 months ago

ncatelli commented 5 months ago

relates #3

This corrects the length check to prevent for borrowing in a case where the length of the comparators is 0.

LukeMathWalker commented 5 months ago

Thanks for the PR—this has been fixed thanks to #4 and https://github.com/mainmatter/cargo-autoinherit/commit/35325140f0bb15dc1fbff29bf262bfe477b59625