From 94aa986ab8688b7535ad29d2f7e4538dbdf6fd55 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 6 Jan 2025 17:52:15 -0600 Subject: [PATCH] remove --- crates/djls-template-ast/src/tagspecs.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/crates/djls-template-ast/src/tagspecs.rs b/crates/djls-template-ast/src/tagspecs.rs index 3b3b0ee..7b1f55d 100644 --- a/crates/djls-template-ast/src/tagspecs.rs +++ b/crates/djls-template-ast/src/tagspecs.rs @@ -1,9 +1,7 @@ use anyhow::Result; use serde::Deserialize; use std::collections::HashMap; -use std::convert::TryFrom; use std::fs; -use std::ops::{Deref, Index}; use std::path::Path; use thiserror::Error; use toml::Value; @@ -99,14 +97,6 @@ impl TagSpecs { } } -impl TryFrom<&Path> for TagSpecs { - type Error = TagSpecError; - - fn try_from(path: &Path) -> Result { - Self::load_from_toml(path, &[]).map_err(Into::into) - } -} - #[derive(Debug, Clone, Deserialize)] pub struct TagSpec { #[serde(rename = "type")]