Skip to content

Commit

Permalink
refactor(resolve): Make it easier to extend MSRV logic
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 11, 2024
1 parent a8e816b commit b7b3874
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cargo/ops/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ pub fn resolve_with_previous<'gctx>(
version_prefs.version_ordering(VersionOrdering::MinimumVersionsFirst)
}
if ws.resolve_honors_rust_version() {
version_prefs.max_rust_version(ws.rust_version().cloned().map(RustVersion::into_partial));
let rust_version = ws.rust_version().cloned().map(RustVersion::into_partial);
version_prefs.max_rust_version(rust_version);
}

let avoid_patch_ids = if register_patches {
Expand Down

0 comments on commit b7b3874

Please sign in to comment.