Skip to content

Conversation

@notriddle
Copy link
Contributor

  • Stop checking func in onEach. It's always hard-coded right at the call site, so there's no point.
  • Use the ternary operator in a few spots where it makes sense.
  • No point in making onEach store arr.length in a variable if it's only used once anyway.

@rustbot
Copy link
Collaborator

rustbot commented Apr 6, 2023

r? @GuillaumeGomez

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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Apr 6, 2023
@rustbot
Copy link
Collaborator

rustbot commented Apr 6, 2023

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

* Stop checking `func` in `onEach`. It's always hard-coded right
  at the call site, so there's no point.
* Use the ternary operator in a few spots where it makes sense.
* No point in making `onEach` store `arr.length` in a variable if
  it's only used once anyway.
@notriddle notriddle force-pushed the notriddle/clean-up-js branch from c8121f9 to 815f5bb Compare April 6, 2023 23:25
@notriddle notriddle changed the title rustdoc: clean up storage.js and main.js rustdoc: clean up JS Apr 6, 2023
@GuillaumeGomez
Copy link
Member

Thanks!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 7, 2023

📌 Commit 815f5bb has been approved by GuillaumeGomez

It is now in the queue for this repository.

@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 Apr 7, 2023
notriddle added a commit to notriddle/rust that referenced this pull request Apr 8, 2023
…=GuillaumeGomez

rustdoc: clean up JS

* Stop checking `func` in `onEach`. It's always hard-coded right at the call site, so there's no point.
* Use the ternary operator in a few spots where it makes sense.
* No point in making `onEach` store `arr.length` in a variable if it's only used once anyway.
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 8, 2023
Rollup of 5 pull requests

Successful merges:

 - rust-lang#110030 (rustdoc: clean up JS)
 - rust-lang#110037 (rustdoc: add test and bug fix for theme defaults)
 - rust-lang#110065 (Fix wrong type in docs: i16 -> u16)
 - rust-lang#110068 (Temporarily remove myself from reviewers list)
 - rust-lang#110075 (Fix a typo in `config.example.toml`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 77639c0 into rust-lang:master Apr 8, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 8, 2023
@notriddle notriddle deleted the notriddle/clean-up-js branch April 8, 2023 13:57
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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants