Skip to content

Commit b7b3874

Browse files
committed
refactor(resolve): Make it easier to extend MSRV logic
1 parent a8e816b commit b7b3874

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/ops/resolve.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ pub fn resolve_with_previous<'gctx>(
304304
version_prefs.version_ordering(VersionOrdering::MinimumVersionsFirst)
305305
}
306306
if ws.resolve_honors_rust_version() {
307-
version_prefs.max_rust_version(ws.rust_version().cloned().map(RustVersion::into_partial));
307+
let rust_version = ws.rust_version().cloned().map(RustVersion::into_partial);
308+
version_prefs.max_rust_version(rust_version);
308309
}
309310

310311
let avoid_patch_ids = if register_patches {

0 commit comments

Comments
 (0)