File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,6 @@ fn print_lockfile_update(
181
181
let warn = style:: WARN ;
182
182
format ! ( " {warn}(latest: v{version}){warn:#}" )
183
183
}
184
- fn is_latest ( candidate : & semver:: Version , current : & semver:: Version ) -> bool {
185
- current < candidate
186
- // Only match pre-release if major.minor.patch are the same
187
- && ( candidate. pre . is_empty ( )
188
- || ( candidate. major == current. major
189
- && candidate. minor == current. minor
190
- && candidate. patch == current. patch ) )
191
- }
192
184
let possibilities = if let Some ( query) = diff. alternatives_query ( ) {
193
185
loop {
194
186
match registry. query_vec ( & query, QueryKind :: Exact ) {
@@ -295,6 +287,15 @@ fn print_lockfile_update(
295
287
Ok ( ( ) )
296
288
}
297
289
290
+ fn is_latest ( candidate : & semver:: Version , current : & semver:: Version ) -> bool {
291
+ current < candidate
292
+ // Only match pre-release if major.minor.patch are the same
293
+ && ( candidate. pre . is_empty ( )
294
+ || ( candidate. major == current. major
295
+ && candidate. minor == current. minor
296
+ && candidate. patch == current. patch ) )
297
+ }
298
+
298
299
fn fill_with_deps < ' a > (
299
300
resolve : & ' a Resolve ,
300
301
dep : PackageId ,
You can’t perform that action at this time.
0 commit comments