File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/ide_db/src/helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ impl ImportAssets {
280
280
. into_iter ( )
281
281
. filter ( |import| import. import_path . len ( ) > 1 )
282
282
. filter ( |import| !scope_definitions. contains ( & ScopeDef :: from ( import. item_to_import ) ) )
283
- . sorted_by_key ( |import| import . import_path . clone ( ) )
283
+ . sorted_by ( |a , b| a . import_path . cmp ( & b . import_path ) )
284
284
. collect ( )
285
285
}
286
286
@@ -309,9 +309,9 @@ fn path_applicable_imports(
309
309
current_crate,
310
310
path_candidate. name . clone ( ) ,
311
311
// FIXME: we could look up assoc items by the input and propose those in completion,
312
- // but that requries more preparation first:
312
+ // but that requires more preparation first:
313
313
// * store non-trait assoc items in import_map to fully enable this lookup
314
- // * ensure that does not degrade the performance (bencmark it)
314
+ // * ensure that does not degrade the performance (benchmark it)
315
315
// * write more logic to check for corresponding trait presence requirement (we're unable to flyimport multiple item right now)
316
316
// * improve the associated completion item matching and/or scoring to ensure no noisy completions appear
317
317
//
You can’t perform that action at this time.
0 commit comments