diff --git a/cli/src/templater.rs b/cli/src/templater.rs index 43bb1f6c4..02dfe62f4 100644 --- a/cli/src/templater.rs +++ b/cli/src/templater.rs @@ -348,20 +348,6 @@ impl TemplateProperty for Literal { } } -/// Adapter to turn closure into property. -pub struct TemplatePropertyFn(pub F); - -impl TemplateProperty for TemplatePropertyFn -where - F: Fn(&C) -> Result, -{ - type Output = O; - - fn extract(&self, context: &C) -> Result { - (self.0)(context) - } -} - /// Adapter to extract context-less template value from property for displaying. pub struct FormattablePropertyTemplate

{ property: P,