Skip to content

Commit 975d715

Browse files
Merge pull request #179 from matthiasbeyer/make-fn-tests-only
Make function only available in tests
2 parents 65acce6 + 94dc226 commit 975d715

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/file_toml.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct Settings {
4141
elements: Vec<String>,
4242
}
4343

44+
#[cfg(test)]
4445
fn make() -> Config {
4546
let mut c = Config::default();
4647
c.merge(File::new("tests/Settings", FileFormat::Toml))

0 commit comments

Comments
 (0)