We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf39fd6 commit 94aa986Copy full SHA for 94aa986
crates/djls-template-ast/src/tagspecs.rs
@@ -1,9 +1,7 @@
1
use anyhow::Result;
2
use serde::Deserialize;
3
use std::collections::HashMap;
4
-use std::convert::TryFrom;
5
use std::fs;
6
-use std::ops::{Deref, Index};
7
use std::path::Path;
8
use thiserror::Error;
9
use toml::Value;
@@ -99,14 +97,6 @@ impl TagSpecs {
99
97
}
100
98
101
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
110
#[derive(Debug, Clone, Deserialize)]
111
pub struct TagSpec {
112
#[serde(rename = "type")]
0 commit comments