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)?) }