Skip to content

Conversation

@hbina
Copy link
Contributor

@hbina hbina commented Aug 11, 2020

While studying the source code, I am surprised to see that into_url
does not actually consume its caller when a function with such name
usually does. Additionally, there is a trait in cargo::util::IntoUrl
with the same and does exactly what you expect, consumes itself and yields
a CargoResult<Url>.

I hope this is not too nitpicky.
Thank you!

While studying the source code, I am surprised to see that `into_url`
does not actually consume the string when a function with such name
usually does. Additionally, there are traits in `cargo::util::IntoUrl`
with the same and does exactly what you expect, consumes T and yields
a `Url`.

I hope this is not too nitpicky.
Thank you!
@rust-highfive
Copy link

r? @ehuss

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 11, 2020
@ehuss
Copy link
Contributor

ehuss commented Aug 11, 2020

Thanks! Maybe the struct SourceIdIntoUrl should also be renamed?

@ehuss
Copy link
Contributor

ehuss commented Aug 19, 2020

Thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Aug 19, 2020

📌 Commit 3dbac42 has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 19, 2020
@bors
Copy link
Contributor

bors commented Aug 19, 2020

⌛ Testing commit 3dbac42 with merge 3434334...

@bors
Copy link
Contributor

bors commented Aug 19, 2020

☀️ Test successful - checks-actions
Approved by: ehuss
Pushing 3434334 to master...

@bors bors merged commit 3434334 into rust-lang:master Aug 19, 2020
@hbina hbina deleted the rename_into_url branch August 19, 2020 21:13
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 20, 2020
Update cargo

5 commits in ab32ee88dade1b50c77347599e82ca2de3fb8a51..51b66125ba97d2906f461b3f4e0408f206299bb6
2020-08-10 17:44:43 +0000 to 2020-08-19 20:22:52 +0000
- Add chapters on dependency resolution and SemVer compatibility. (rust-lang/cargo#8609)
- Renames SourceId::into_url -&gt; SourceId::as_url (rust-lang/cargo#8611)
- Fix bug with PathAndArg config values (rust-lang/cargo#8629)
- Show full error context on `cargo run` error. (rust-lang/cargo#8627)
- Fix typo in SIGQUIT description (rust-lang/cargo#8615)
@ehuss ehuss added this to the 1.47.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants