Skip to content

Commit 63e3200

Browse files
perf: use sort_unstable_by in extract_rust_idioms
Agent-Logs-Url: https://github.com/PromptExecution/l3dg3rr/sessions/b4d10f5c-691b-42f3-90f6-c321580465b8 Co-authored-by: elasticdotventures <35611074+elasticdotventures@users.noreply.github.com>
1 parent 275a567 commit 63e3200

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/ontology-extractor/src

crates/ontology-extractor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl RustAstExtractor {
8484
// Sort and dedup by (file, name, classification) so items that share a
8585
// name in different Rust namespaces (e.g. `struct Foo` and `fn Foo()`)
8686
// are preserved as distinct entries.
87-
terms.sort_by(|left, right| {
87+
terms.sort_unstable_by(|left, right| {
8888
(left.file.as_str(), left.name.as_str(), left.classification.kind())
8989
.cmp(&(right.file.as_str(), right.name.as_str(), right.classification.kind()))
9090
});

0 commit comments

Comments
 (0)