Skip to content

Commit f8a47fa

Browse files
committed
refactor: make clear SourceId serialization will change in v4
1 parent 6af53da commit f8a47fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cargo/core/source_id.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ impl fmt::Display for SourceId {
656656
// Don't replace the URL display for git references,
657657
// because those are kind of expected to be URLs.
658658
write!(f, "{}", self.inner.url)?;
659-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
659+
// TODO(-Znext-lockfile-bump): set it to true when the default is
660660
// lockfile v4, because we want Source ID serialization to be
661661
// consistent with lockfile.
662662
if let Some(pretty) = reference.pretty_ref(false) {

src/cargo/sources/git/source.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl<'cfg> Debug for GitSource<'cfg> {
188188
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
189189
write!(f, "git repo at {}", self.remote.url())?;
190190

191-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
191+
// TODO(-Znext-lockfile-bump): set it to true when the default is
192192
// lockfile v4, because we want Source ID serialization to be
193193
// consistent with lockfile.
194194
match self.manifest_reference.pretty_ref(false) {

src/cargo/util/toml_mut/dependency.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ impl std::fmt::Display for GitSource {
918918
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
919919
let git_ref = self.git_ref();
920920

921-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
921+
// TODO(-Znext-lockfile-bump): set it to true when the default is
922922
// lockfile v4, because we want Source ID serialization to be
923923
// consistent with lockfile.
924924
if let Some(pretty_ref) = git_ref.pretty_ref(false) {

0 commit comments

Comments
 (0)