Skip to content
Snippets Groups Projects
Commit 9d26a918 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Remove dbg!()s in tor-config

This should satisfy our CI and turn it green again.
parent b4e9e422
No related branches found
No related tags found
1 merge request!516Remove dbg!()s in tor-config, and fix nightly CI
......@@ -318,23 +318,19 @@ mod test_serde {
}
fn deser_json(json: &str) -> CfgPath {
dbg!(json);
let TestConfigFile { p } = serde_json::from_str(json).expect("deser json failed");
p
}
fn deser_toml(toml: &str) -> CfgPath {
dbg!(toml);
let TestConfigFile { p } = toml::from_str(toml).expect("deser toml failed");
p
}
fn deser_toml_cfg(toml: &str) -> CfgPath {
dbg!(toml);
let cfg = config::File::from_str(toml, config::FileFormat::Toml);
let cfg = config::Config::builder()
.add_source(cfg)
.build()
.expect("parse toml failed");
dbg!(&cfg);
let TestConfigFile { p } = cfg.try_deserialize().expect("deser cfg failed");
p
}
......@@ -392,7 +388,6 @@ mod test_serde {
Err(e) if easy => panic!("ser failed {:?} e={:?}", &input, &e),
Err(_) => return,
};
dbg!(&input, &s);
let output = deser(&s).expect("deser failed");
assert_eq!(&input, &output, "s={:?}", &s);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment