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")]