This commit is contained in:
Josh Thomas 2025-01-06 17:52:15 -06:00
parent bf39fd633a
commit 94aa986ab8

View file

@ -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, Self::Error> {
Self::load_from_toml(path, &[]).map_err(Into::into)
}
}
#[derive(Debug, Clone, Deserialize)]
pub struct TagSpec {
#[serde(rename = "type")]