Update module.rs

This commit is contained in:
Shunsuke Shibayama 2025-12-01 19:15:37 +09:00
parent d921202bd6
commit 56d3173da5
1 changed files with 2 additions and 2 deletions

View File

@ -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)))