fn write_config_file(path: &str, contents: String) {
    std::fs::OpenOptions::new()
        .write(true)
        .create(true)
        .truncate(true)
        .open(path)
        .unwrap_or_else(|_| panic!("Could not open config file: {}", path))
        .write_all(contents.as_bytes())
        .unwrap_or_else(|_| panic!("Failed to write to config file: {}", path));
}
/// Write out the configuration in `contents` to the file at `path`.
Write out the configuration in `contents` to the file at `path`.
Write out the configuration in ` contents ` to the file at ` path ` .
fn write_config_file(path: &str, contents: String) {
    std::fs::OpenOptions::new()
        .write(true)
        .create(true)
        .truncate(true)
        .open(path)
        .unwrap_or_else(|_| panic!("Could not open config file: {}", path))
        .write_all(contents.as_bytes())
        .unwrap_or_else(|_| panic!("Failed to write to config file: {}", path));
}
fn write_config_file ( path : & str , contents : String ) { std :: fs :: OpenOptions :: new ( ) . write ( true ) . create ( true ) . truncate ( true ) . open ( path ) . unwrap_or_else ( | _ | panic ! ( " " path ) ) . write_all ( contents . as_bytes ( ) ) . unwrap_or_else ( | _ | panic ! ( " " path ) ) ; }
Write out the configuration in `contents` to the file at `path`.
Write out the configuration in ` contents ` to the file at ` path ` .
path
&str
contents
String
path
&str
contents
String