diff --git a/crates/gritmodule/src/yaml.rs b/crates/gritmodule/src/yaml.rs index 86cc9586f..593708c8d 100644 --- a/crates/gritmodule/src/yaml.rs +++ b/crates/gritmodule/src/yaml.rs @@ -42,8 +42,8 @@ pub fn get_grit_config(source: &str, source_path: &str) -> Result { let mut definitation = GritDefinitionConfig::from_serialized(p, source_path.to_string()); definitation.raw = Some(RawGritDefinition { + format: PatternFileExt::Yaml, content: source.to_owned(), - format: crate::parser::PatternFileExt::Yaml, }); patterns.push(definitation); }