Fix unreachable_code warning on Windows
We are having a platform specific override on Windows, which makes the "None" path unreachable. This throws a warning on Windows. Gate the non-windows path by a `cfg()` attribute to remove the warning.
@@ -41,8 +41,11 @@ fn load_base_config() -> Table {
let win_toml: &str = include_str!("../assets/windows.toml");
return Some(load(win_toml))
}
+ #[cfg(not(target_os = "windows"))]
+ {
None
}
+ }
let base_toml: &str = include_str!("../assets/defaults.toml");
let mut base = load(base_toml);
