diff --git a/src/tests/config_serialization.rs b/src/tests/config_serialization.rs index ba95f87..945eead 100644 --- a/src/tests/config_serialization.rs +++ b/src/tests/config_serialization.rs @@ -1,6 +1,6 @@ +use crate::Config; use std::time::Duration; use toml; -use crate::Config; const TOML_STR_ONE: &str = r#" zone_id = "" @@ -57,19 +57,3 @@ domains = [""] let toml_str = toml::to_string(&config).unwrap(); assert_eq!(toml_to_be.trim(), toml_str.trim()); } - -fn main() { - let toml_str = r#" -zone_id = "" -api_key = "" -domains = [""] -max_errors_in_row = 5 -max_duration = "1d 2h 30m 45s 500000000ns" -"#; - - let config: Config = toml::from_str(toml_str).unwrap(); - println!("{:?}", config); - - let toml_out = toml::to_string(&config).unwrap(); - println!("{}", toml_out); -}