Skip to content

Commit bec5a26

Browse files
committed
refactor: make clear SourceId serialization will change in v4
1 parent 78ca132 commit bec5a26

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
@@ -692,7 +692,7 @@ impl fmt::Display for SourceId {
692692
// Don't replace the URL display for git references,
693693
// because those are kind of expected to be URLs.
694694
write!(f, "{}", self.inner.url)?;
695-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
695+
// TODO(-Znext-lockfile-bump): set it to true when the default is
696696
// lockfile v4, because we want Source ID serialization to be
697697
// consistent with lockfile.
698698
if let Some(pretty) = reference.pretty_ref(false) {

src/cargo/sources/git/source.rs

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

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

src/cargo/util/toml_mut/dependency.rs

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

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

0 commit comments

Comments
 (0)