Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary LocalName::from(constant) calls #25633

Merged
merged 1 commit into from Jan 29, 2020

Conversation

@pshaughn
Copy link
Member

pshaughn commented Jan 28, 2020

Changing calls to LocalName::from with a constant argument to use the interned local name instead doesn't really save a meaningful amount of time (when it's not in a loop or on a critical path), but it's good for codebase consistency.

@highfive
Copy link

highfive commented Jan 28, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/servoparser/prefetch.rs, components/script/dom/htmlimageelement.rs
  • @KiChjang: components/script/dom/servoparser/prefetch.rs, components/script/dom/htmlimageelement.rs
@highfive
Copy link

highfive commented Jan 28, 2020

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@jdm
Copy link
Member

jdm commented Jan 28, 2020

@bors-servo r+
Agreed!

@bors-servo
Copy link
Contributor

bors-servo commented Jan 28, 2020

📌 Commit 0228904 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jan 28, 2020

Testing commit 0228904 with merge 3126303...

bors-servo added a commit that referenced this pull request Jan 28, 2020
Remove unnecessary LocalName::from(constant) calls

Changing calls to LocalName::from with a constant argument to use the interned local name instead doesn't really save a meaningful amount of time (when it's not in a loop or on a critical path), but it's good for codebase consistency.
@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 29, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

Testing commit 0228904 with merge 723dad6...

bors-servo added a commit that referenced this pull request Jan 29, 2020
Remove unnecessary LocalName::from(constant) calls

Changing calls to LocalName::from with a constant argument to use the interned local name instead doesn't really save a meaningful amount of time (when it's not in a loop or on a critical path), but it's good for codebase consistency.
@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jan 29, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

Testing commit 0228904 with merge b3ac17b...

bors-servo added a commit that referenced this pull request Jan 29, 2020
Remove unnecessary LocalName::from(constant) calls

Changing calls to LocalName::from with a constant argument to use the interned local name instead doesn't really save a meaningful amount of time (when it's not in a loop or on a critical path), but it's good for codebase consistency.
@bors-servo
Copy link
Contributor

bors-servo commented Jan 29, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing b3ac17b to master...

@bors-servo bors-servo merged commit 0228904 into servo:master Jan 29, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.