瀏覽代碼

Use kebab case for the top level headers

Mark Rousskov 5 年之前
父節點
當前提交
468d19e24e
共有 1 個文件被更改,包括 1 次插入0 次删除
  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>,