From 861ec39ce1cdaff1fd3f56b836888f84e8134131 Mon Sep 17 00:00:00 2001 From: Mario Carneiro Date: Sat, 10 Jun 2023 19:14:16 -0400 Subject: [PATCH] organizing the parts that have been done so far --- src/defck.rs | 97 +++++++++++++++++++++----------------------------- src/formula.rs | 80 +++++++++++++++++++++++++++++++++++++---- 2 files changed, 114 insertions(+), 63 deletions(-) diff --git a/src/defck.rs b/src/defck.rs index 975cb51..4eb0c5e 100644 --- a/src/defck.rs +++ b/src/defck.rs @@ -35,8 +35,8 @@ pub struct DefResult { impl DefResult { /// Returns the definition axiom for the given syntax axiom. #[must_use] - pub fn definition_for(&self, syntax_axiom: Label) -> Option<&Label> { - self.def_map.get(&syntax_axiom) + pub fn definition_for(&self, syntax_axiom: Label) -> Option