Skip to content

Commit 7dfb457

Browse files
committed
add FIXME note in TomlConfig::merge
Signed-off-by: onur-ozkan <[email protected]>
1 parent 8e6f50b commit 7dfb457

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/bootstrap/src/core/config/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,8 @@ impl Merge for TomlConfig {
812812
exit!(2);
813813
});
814814

815+
// FIXME: Similar to `Config::parse_inner`, allow passing a custom `get_toml` from the caller to
816+
// improve testability since `Config::get_toml` does nothing when `cfg(test)` is enabled.
815817
let included_toml = Config::get_toml(&include_path).unwrap_or_else(|e| {
816818
eprintln!("ERROR: Failed to parse '{}': {e}", include_path.display());
817819
exit!(2);

0 commit comments

Comments
 (0)