From 0c10df5a17a3c34441248aae36f3df674bb6a37b Mon Sep 17 00:00:00 2001 From: Vitaly Bogdanov Date: Thu, 11 Jul 2024 18:09:54 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: luketpeterson <36806965+luketpeterson@users.noreply.github.com> --- lib/src/metta/runner/modules/mod.rs | 2 +- lib/src/space/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/metta/runner/modules/mod.rs b/lib/src/metta/runner/modules/mod.rs index f659d4c53..e52295140 100644 --- a/lib/src/metta/runner/modules/mod.rs +++ b/lib/src/metta/runner/modules/mod.rs @@ -221,7 +221,7 @@ impl MettaMod { Ok(()) } - /// Returns `true` if a module used to import a specific loaded dependency + /// Returns `true` if the `self` module has imported the `mod_id` module as a sub-dependency pub fn contains_imported_dep(&self, mod_id: &ModId) -> bool { let deps_table = self.imported_deps.lock().unwrap(); deps_table.contains_key(&mod_id) diff --git a/lib/src/space/mod.rs b/lib/src/space/mod.rs index 1d90dad31..0bd604ba1 100644 --- a/lib/src/space/mod.rs +++ b/lib/src/space/mod.rs @@ -207,10 +207,10 @@ pub trait Space: std::fmt::Debug + std::fmt::Display { None } - /// Returns an &dyn [std::any::Any] for spaces where this is possible + /// Returns an `&dyn `[Any](std::any::Any) for spaces where this is possible fn as_any(&self) -> Option<&dyn std::any::Any>; - /// Returns an &mut dyn [std::any::Any] for spaces where this is possible + /// Returns an `&mut dyn `[Any](std::any::Any) for spaces where this is possible fn as_any_mut(&mut self) -> Option<&mut dyn std::any::Any>; }