// Function to remove the tmp file used by tips for update or adding
// a new tip.
//
// Will panic if removal of file was unsuccessful.
Function to remove the tmp file used by tips for update or adding
a new tip.

Will panic if removal of file was unsuccessful.
Function to remove the tmp file used by tips for update or adding a new tip . Will panic if removal of file was unsuccessful .
pub fn remove_file(file: &str) {
    let result = std::fs::remove_file(file);
    match result {
        Ok(_)      => (),
        Err(error) => {
            panic!("Unable to remove: {}\n{}",
                   &CONFIG.tmp_file, error);
        },
    };
}
pub fn remove_file ( file : & str ) { let result = std :: fs :: remove_file ( file ) ; match result { Ok ( _ ) => ( ) , Err ( error ) => { panic ! ( " \n " CONFIG tmp_file error ) ; } , } ; }
Function to remove the tmp file used by tips for update or adding
a new tip.
Function to remove the tmp file used by tips for update or adding a new tip .
file
&str