about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-04-06 14:53:29 -0700
committerMichael Howell <michael@notriddle.com>2023-04-06 16:25:38 -0700
commit815f5bbcc53dbb40c11127f26080e0ad9b7dc935 (patch)
treebcdfafdba8550c7d6309f8c2f12bb61fa686e629 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentde74dab880447f5227030b261dbd0f2bc4f32dba (diff)
downloadrust-815f5bbcc53dbb40c11127f26080e0ad9b7dc935.tar.gz
rust-815f5bbcc53dbb40c11127f26080e0ad9b7dc935.zip
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