about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-08 17:02:06 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-16 10:52:19 +1000
commitc4cd04480bdfca84274dcbe80dae710bdbe0bd59 (patch)
treecca237f77482894f9e28de254b9b3dc596fbf4ae /src
parent7e4ec35d0cc56ac3016e98909aad8688516a43f8 (diff)
downloadrust-c4cd04480bdfca84274dcbe80dae710bdbe0bd59.tar.gz
rust-c4cd04480bdfca84274dcbe80dae710bdbe0bd59.zip
sort_candidates: avoid the second comparison if possible.
This is a performance win for `unicode-normalization`.

The commit also removes the closure, which isn't necessary. And
reformulates the comparison into a form I find easier to read.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions