File tree 1 file changed +11
-3
lines changed 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,17 @@ impl VersionPreferences {
52
52
self . max_rust_version = ver;
53
53
}
54
54
55
- /// Sort the given vector of summaries in-place, with all summaries presumed to be for
56
- /// the same package. Preferred versions appear first in the result, sorted by
57
- /// `version_ordering`, followed by non-preferred versions sorted the same way.
55
+ /// Sort (and filter) the given vector of summaries in-place
56
+ ///
57
+ /// Note: all summaries presumed to be for the same package.
58
+ ///
59
+ /// Sort order:
60
+ /// 1. Preferred packages
61
+ /// 2. `first_version`, falling back to [`VersionPreferences::version_ordering`] when `None`
62
+ ///
63
+ /// Filtering:
64
+ /// - [`VersionPreferences::max_rust_version`]
65
+ /// - `first_version`
58
66
pub fn sort_summaries (
59
67
& self ,
60
68
summaries : & mut Vec < Summary > ,
You can’t perform that action at this time.
0 commit comments