about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-08 10:26:13 +0200
committerGitHub <noreply@github.com>2023-04-08 10:26:13 +0200
commit77639c094724af6eb3f861c90ac2338e02764148 (patch)
treeb777eca41149ee50d3a96204d4fdb94820f68a87 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent131211acd2e5519a0ff3e3e8d5f827cddebb1d8a (diff)
parent815f5bbcc53dbb40c11127f26080e0ad9b7dc935 (diff)
downloadrust-77639c094724af6eb3f861c90ac2338e02764148.tar.gz
rust-77639c094724af6eb3f861c90ac2338e02764148.zip
Rollup merge of #110030 - notriddle:notriddle/clean-up-js, r=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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions