fn create_file(config: &str) -> PathBuf {
    let path = temp_file();
    let mut file = OpenOptions::new()
        .create(true)
        .write(true)
        .truncate(true)
        .open(path.clone())
        .unwrap();

    file.write_all(config.as_bytes()).unwrap();
    file.flush().unwrap();

    path
}
/// Creates a file with given content
Creates a file with given content
Creates a file with given content
fn create_file(config: &str) -> PathBuf {
    let path = temp_file();
    let mut file = OpenOptions::new()
        .create(true)
        .write(true)
        .truncate(true)
        .open(path.clone())
        .unwrap();
    file.write_all(config.as_bytes()).unwrap();
    file.flush().unwrap();
    path
}
fn create_file ( config : & str ) -> PathBuf { let path = temp_file ( ) ; let mut file = OpenOptions :: new ( ) . create ( true ) . write ( true ) . truncate ( true ) . open ( path . clone ( ) ) . unwrap ( ) ; file . write_all ( config . as_bytes ( ) ) . unwrap ( ) ; file . flush ( ) . unwrap ( ) ; path }
Creates a file with given content
Creates a file with given content
config
&str