chore: fix warnings

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-25 17:27:31 +02:00
parent b01543a8b9
commit b3aedfb411
5 changed files with 4 additions and 37 deletions

View File

@@ -71,7 +71,6 @@ pub struct RawPlanConfigSection {
#[serde(untagged)]
pub enum RawPlanSchema {
Nickel { nickel: PathBuf },
JsonSchema { jsonschema: String },
}
pub struct Plan {}
@@ -200,28 +199,4 @@ mod tests {
Ok(())
}
#[test]
fn test_can_parse_json_schema() -> anyhow::Result<()> {
let plan = RawPlan::from_file(
r##"
[plan]
schema = {jsonschema = "schema.json"}
"##,
&PathBuf::new(),
)?;
assert_eq!(
RawPlanConfig {
plan: RawPlanConfigSection {
schema: Some(RawPlanSchema::JsonSchema {
jsonschema: "schema.json".into()
}),
}
},
plan.config,
);
Ok(())
}
}