Explorar o código

Use kebab case for the top level headers

Mark Rousskov %!s(int64=5) %!d(string=hai) anos
pai
achega
468d19e24e
Modificáronse 1 ficheiros con 1 adicións e 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>,