From 52305ffa2b85adac46885e3ff135fa47ca0f77b9 Mon Sep 17 00:00:00 2001 From: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com> Date: Sun, 27 Oct 2024 01:47:57 +0100 Subject: [PATCH] testing 2 --- binaries/cuprated/src/config/default.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/binaries/cuprated/src/config/default.rs b/binaries/cuprated/src/config/default.rs index 9afcf051..46e357e2 100644 --- a/binaries/cuprated/src/config/default.rs +++ b/binaries/cuprated/src/config/default.rs @@ -37,7 +37,7 @@ pub fn create_default_config_file(path: &Path) -> ! { /// Generates the text of the default config file. fn generate_config_text() -> String { format!( - include!("Cuprate.toml"), + include_str!("Cuprate.toml"), cache = CUPRATE_CACHE_DIR.to_string_lossy(), txpool = CUPRATE_TXPOOL_DIR.to_string_lossy(), blockchain = CUPRATE_BLOCKCHAIN_DIR.to_string_lossy() @@ -52,12 +52,11 @@ mod tests { fn generate_config_text_covers_all_values() { let text = generate_config_text(); - #[cfg!(target_os = "windows")] + #[cfg(target_os = "windows")] { let full_config = Config::default(); panic!(toml::to_string_pretty(&full_config).unwrap()); } - let table: toml::Table = toml::from_str(&text).unwrap();