Skip to content

Commit c38ca2d

Browse files
committed
Link to ResolveVersion::default
1 parent 293431d commit c38ca2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/core/resolver/resolve.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ pub struct Resolve {
4747
}
4848

4949
/// A version to indicate how a `Cargo.lock` should be serialized. Currently
50-
/// V3 is the default when creating a new lockfile. If an old version of
51-
/// lockfile already exists, it will stay as-is.
50+
/// [V3 is the default](ResolveVersion::default) when creating a new lockfile.
51+
/// If an old version of lockfile already exists, it will stay as-is.
5252
///
5353
/// It's theorized that we can add more here over time to track larger changes
5454
/// to the `Cargo.lock` format, but we've yet to see how that strategy pans out.
@@ -396,7 +396,7 @@ impl fmt::Debug for Resolve {
396396
impl Default for ResolveVersion {
397397
/// The default way to encode new or updated `Cargo.lock` files.
398398
///
399-
/// It's important that if a new version of `ResolveVersion` is added that
399+
/// It's important that if a new version of [`ResolveVersion`] is added that
400400
/// this is not updated until *at least* the support for the version is in
401401
/// the stable release of Rust.
402402
///

0 commit comments

Comments
 (0)