Explorar el Código

Use kebab case for the top level headers

Mark Rousskov hace 5 años
padre
commit
468d19e24e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/config.rs

+ 1 - 0
src/config.rs

@@ -14,6 +14,7 @@ lazy_static::lazy_static! {
 }
 
 #[derive(PartialEq, Eq, Debug, serde::Deserialize)]
+#[serde(rename_all = "kebab-case")]
 pub(crate) struct Config {
     pub(crate) relabel: Option<RelabelConfig>,
     pub(crate) assign: Option<AssignConfig>,