From 56d3173da5c4eaa597efb010d20130069985e7e2 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Mon, 1 Dec 2025 19:15:37 +0900 Subject: [PATCH] Update module.rs --- crates/ty_python_semantic/src/module_resolver/module.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ty_python_semantic/src/module_resolver/module.rs b/crates/ty_python_semantic/src/module_resolver/module.rs index 88700e3889..4218a93e72 100644 --- a/crates/ty_python_semantic/src/module_resolver/module.rs +++ b/crates/ty_python_semantic/src/module_resolver/module.rs @@ -103,7 +103,7 @@ impl<'db> Module<'db> { .unwrap_or_default() } - pub fn structural_ordering(self, db: &'db dyn Db, other: Self) -> std::cmp::Ordering { + pub(crate) fn structural_ordering(self, db: &'db dyn Db, other: Self) -> std::cmp::Ordering { match (self, other) { (Module::File(left), Module::File(right)) => left.structural_ordering(db, right), (Module::Namespace(left), Module::Namespace(right)) => { @@ -286,7 +286,7 @@ pub struct FileModule<'db> { } impl FileModule<'_> { - pub fn structural_ordering(self, db: &dyn Db, other: Self) -> std::cmp::Ordering { + pub(crate) fn structural_ordering(self, db: &dyn Db, other: Self) -> std::cmp::Ordering { self.name(db) .cmp(other.name(db)) .then_with(|| self.file(db).structural_ordering(db, other.file(db)))