Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: luketpeterson <[email protected]>
  • Loading branch information
vsbogd and luketpeterson authored Jul 11, 2024
1 parent b48aee9 commit 0c10df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/metta/runner/modules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/src/space/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}

Expand Down

0 comments on commit 0c10df5

Please sign in to comment.