From ca7429580c66a8764f3ba269711feb4bb781cc34 Mon Sep 17 00:00:00 2001 From: Amit Upadhyay Date: Fri, 22 Nov 2024 13:39:52 +0530 Subject: [PATCH] wip undo arpita changes --- fastn-resolved/src/lib.rs | 7 ------- ftd/src/html/functions.rs | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/fastn-resolved/src/lib.rs b/fastn-resolved/src/lib.rs index 63d34b130..f7830f198 100644 --- a/fastn-resolved/src/lib.rs +++ b/fastn-resolved/src/lib.rs @@ -85,11 +85,4 @@ impl Definition { _ => None, } } - - pub fn component_ref(&self) -> Option<&fastn_resolved::ComponentDefinition> { - match self { - fastn_resolved::Definition::Component(v) => Some(v), - _ => None, - } - } } diff --git a/ftd/src/html/functions.rs b/ftd/src/html/functions.rs index 21b8c2ae3..2bd57568f 100644 --- a/ftd/src/html/functions.rs +++ b/ftd/src/html/functions.rs @@ -15,7 +15,7 @@ impl FunctionGenerator { for function in node_data .bag .values() - .filter_map(|v| v.function(node_data.name.as_str(), 0).ok().clone()) + .filter_map(|v| v.to_owned().function(node_data.name.as_str(), 0).ok()) { vector.push(self.get_function(function)?) }