// write version of latest avail. release (if any) to a cache file
write version of latest avail. release (if any) to a cache file
write version of latest avail . release ( if any ) to a cache file
pub(super) fn write_last_check_status(
        p: &PathBuf,
        updater_info: &Option<UpdateInfo>,
    ) -> Result<(), Error> {
        crate::Data::save_to_file(p, updater_info).or_else(|e| {
            let _ = remove_file(p);
            Err(e)
        })
    }
pub ( super ) fn write_last_check_status ( p : & PathBuf , updater_info : & Option < UpdateInfo > , ) -> Result < ( ) , Error > { crate :: Data :: save_to_file ( p , updater_info ) . or_else ( | e | { let _ = remove_file ( p ) ; Err ( e ) } ) }
write version of latest avail.
write version of latest avail .
p
&PathBuf
updater_info
&Option<UpdateInfo>