Skip to content

Commit 94aa986

Browse files
remove
1 parent bf39fd6 commit 94aa986

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

crates/djls-template-ast/src/tagspecs.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use anyhow::Result;
22
use serde::Deserialize;
33
use std::collections::HashMap;
4-
use std::convert::TryFrom;
54
use std::fs;
6-
use std::ops::{Deref, Index};
75
use std::path::Path;
86
use thiserror::Error;
97
use toml::Value;
@@ -99,14 +97,6 @@ impl TagSpecs {
9997
}
10098
}
10199

102-
impl TryFrom<&Path> for TagSpecs {
103-
type Error = TagSpecError;
104-
105-
fn try_from(path: &Path) -> Result<Self, Self::Error> {
106-
Self::load_from_toml(path, &[]).map_err(Into::into)
107-
}
108-
}
109-
110100
#[derive(Debug, Clone, Deserialize)]
111101
pub struct TagSpec {
112102
#[serde(rename = "type")]

0 commit comments

Comments
 (0)