diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-12 07:11:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 07:11:14 +0200 |
commit | 9039de61f392016c5043b720ca218d3561af7efe (patch) | |
tree | 1e68ec4638f5b407991b3c1e3b1da4966f4827dc /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
parent | 4c12f5d25202bbf957d5807dfef26daa70f2f593 (diff) | |
parent | 05c5df56824aaf931aef617827589bb0f3936ffa (diff) | |
download | rust-9039de61f392016c5043b720ca218d3561af7efe.tar.gz |
Rollup merge of #111492 - calebcartwright:by-ref-tokentree-1, r=compiler-errors
use by ref TokenTree iterator to avoid a few clones
Just a handful of swaps from the by-value cursor to by-ref cursor so as to avoid some unnecessary clones.
I've been doing some analysis on internal cleanup opportunities within rustfmt and as part of that yak-shave I found myself perusing broader token stream and tree usage (which we use within rustfmt). As reflected in some inline comments on the cursor structs (not part of this diff), there's probably many other such cases throughout the code, but figured I'd start small with these while I had the time. May take a look at the other sites in the future
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions