Unverified Commit 8dfbc00d authored by Guillaume Gomez's avatar Guillaume Gomez Committed by GitHub
Browse files

Rollup merge of #82809 - notriddle:microoptimize-main-js, r=GuillaumeGomez

rustdoc: Use substrings instead of split to grab enum variant paths

Both versions are about equally readable, but this version avoids scanning the entire path and building an intermediate array (`split()` in Rust is a lazy iterator, but not in JavaScript).
parents 1a08cb6a 0571bc42
Showing with 3 additions and 3 deletions
+3 -3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment