浏览代码

Flatten team structure into ping configuration

Mark Rousskov 5 年之前
父节点
当前提交
28abf02c7c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/config.rs

+ 1 - 0
src/config.rs

@@ -25,6 +25,7 @@ pub(crate) struct Config {
 pub(crate) struct PingConfig {
     // team name -> message
     // message will have the cc string appended
+    #[serde(flatten)]
     pub(crate) teams: HashMap<String, PingTeamConfig>,
 }