rust/hg-core/src/config/mod.rs
changeset 51120 532e74ad3ff6
parent 50983 8343947af6a7
equal deleted inserted replaced
51119:d58e754f2db0 51120:532e74ad3ff6
   756     #[test]
   756     #[test]
   757     fn test_include_layer_ordering() {
   757     fn test_include_layer_ordering() {
   758         let tmpdir = tempfile::tempdir().unwrap();
   758         let tmpdir = tempfile::tempdir().unwrap();
   759         let tmpdir_path = tmpdir.path();
   759         let tmpdir_path = tmpdir.path();
   760         let mut included_file =
   760         let mut included_file =
   761             File::create(&tmpdir_path.join("included.rc")).unwrap();
   761             File::create(tmpdir_path.join("included.rc")).unwrap();
   762 
   762 
   763         included_file.write_all(b"[section]\nitem=value1").unwrap();
   763         included_file.write_all(b"[section]\nitem=value1").unwrap();
   764         let base_config_path = tmpdir_path.join("base.rc");
   764         let base_config_path = tmpdir_path.join("base.rc");
   765         let mut config_file = File::create(&base_config_path).unwrap();
   765         let mut config_file = File::create(&base_config_path).unwrap();
   766         let data =
   766         let data =