Skip to content

Conversation

@Narfinger
Copy link
Contributor

parse takes by reference, so it is enough to use as_str() (which is fast according to the Url documentation) instead of into_string.
into_string() copies the whole url into a new string.

Signed-off-by: Narfinger Narfinger@users.noreply.github.com

Testing: Should not change any functionality.

the string which takes by reference anyway.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 10, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 10, 2025
@jdm jdm enabled auto-merge November 10, 2025 13:48
@jdm jdm added this pull request to the merge queue Nov 10, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 10, 2025
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 10, 2025
@jdm jdm added this pull request to the merge queue Nov 10, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 10, 2025
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 10, 2025
@jdm jdm added this pull request to the merge queue Nov 10, 2025
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Nov 10, 2025
Merged via the queue into servo:main with commit 641ac17 Nov 10, 2025
44 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 10, 2025
@Narfinger Narfinger deleted the url-parse branch November 11, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants