1: enum table must contain exactly one table for key `players` at line 1 column 1', src/bin/otter.rs:304:25
https://github.com/alexcrichton/toml-rs/issues/410
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
timezone = "Europe/London"
-[[players]]
-nick = "alice"
-access = "FixedToken"
-token = "kmqAKPwK4TfReFjMor8MJhdRPBcwIBpe"
+#players = [ { account_glob = "server:*" } ]
[[players]]
-nick = "bob"
-access = "FixedToken"
-token = "ccg9kzoTh758QrVE1xMY7BQWB36dNJTx"
+account_glob = "server:*"
+
+#nick = "alice"
+#access = "FixedToken"
+#token = "kmqAKPwK4TfReFjMor8MJhdRPBcwIBpe"
+
+#[[players]]
+#nick = "bob"
+#access = "FixedToken"
+#token = "ccg9kzoTh758QrVE1xMY7BQWB36dNJTx"
impl Default for ServerConfig {
fn default() -> ServerConfig {
- let spec : ServerConfigSpec = toml::de::from_str("")
- .expect("parse empty string as ServerConfigSpec");
+ let spec : ServerConfigSpec = toml::de::from_str(r#"
+ public_url = "XXX"
+ "#)
+ .expect("parse dummy config as ServerConfigSpec");
spec.try_into().expect("empty spec into config")
}
}