mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
6b69ebcae0
This might have made sense if the algorithm could use `searchWords` to skip having to look at `searchIndex`, but since it always does a substring check on both the stock word and the normalizedName, it doesn't seem to help performance anyway.
16 lines
410 B
JavaScript
16 lines
410 B
JavaScript
const EXPECTED = [
|
|
{
|
|
'query': 'waker_from',
|
|
'others': [
|
|
{ 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' },
|
|
{ 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' },
|
|
],
|
|
},
|
|
{
|
|
'query': 'my',
|
|
'others': [
|
|
{ 'path': 'substring', 'name': 'm_y_substringmatching' },
|
|
],
|
|
},
|
|
];
|