···502502}
503503504504#[derive(Debug, Config)]
505505+#[config(layer_attr(serde(deny_unknown_fields)))]
505506pub struct TlsConfig {
506507 /// The path to the TLS cert chain.
507508 /// If you set both this and `key_path`, the server terminates TLS itself rather than expecting
···1638163916391640 #[test]
16401641 fn load_accepts_known_keys() {
16411641- let dir = std::env::temp_dir().join(format!(
16421642- "tranquil-config-known-keys-{}",
16431643- std::process::id()
16441644- ));
16421642+ let dir =
16431643+ std::env::temp_dir().join(format!("tranquil-config-known-keys-{}", std::process::id()));
16451644 std::fs::create_dir_all(&dir).expect("mkdir tempdir");
16461645 let path = dir.join("config.toml");
16471646 std::fs::write(