fn write_header(&mut self, options: &Clog) -> io::Result<()> {
        try!(write!(self.0, "\"header\":{{\"version\":{:?},\"patch_version\":{:?},\"subtitle\":{},",
            options.version,
            options.patch_ver,
            match options.subtitle.len() {
                0 => "null".to_owned(),
                _ => format!("{:?}", &*options.subtitle)
            }
        ));

        let date = time::now_utc();

        match date.strftime("%Y-%m-%d") {
            Ok(date) => {
                write!(
                    self.0,
                    "\"date\":\"{}\"}},",
                    date
                )
            }
            Err(_) => {
                write!(
                    self.0,
                    "\"date\":null}},",
                )
            }
        }
    }
/// Writes the initial header inforamtion for a release
Writes the initial header inforamtion for a release
Writes the initial header inforamtion for a release
fn write_header(&mut self, options: &Clog) -> io::Result<()> {
        try!(write!(self.0, "\"header\":{{\"version\":{:?},\"patch_version\":{:?},\"subtitle\":{},",
            options.version,
            options.patch_ver,
            match options.subtitle.len() {
                0 => "null".to_owned(),
                _ => format!("{:?}", &*options.subtitle)
            }
        ));
        let date = time::now_utc();
        match date.strftime("%Y-%m-%d") {
            Ok(date) => {
                write!(
                    self.0,
                    "\"date\":\"{}\"}},",
                    date
                )
            }
            Err(_) => {
                write!(
                    self.0,
                    "\"date\":null}},",
                )
            }
        }
    }
fn write_header ( & mut self , options : & Clog ) -> io :: Result < ( ) > { try ! ( write ( self 0 " \" \" \" \" \" \" \" \" " options version options patch_ver match options subtitle len ( ) { 0 " " to_owned ( ) format ( " " options subtitle ) } ) ) ; let date = time :: now_utc ( ) ; match date . strftime ( " " ) { Ok ( date ) => { write ! ( self 0 " \" \" \" \" " date ) } Err ( _ ) => { write ! ( self 0 " \" \" " ) } } }
Writes the initial header inforamtion for a release
Writes the initial header inforamtion for a release
&mut self
options
&Clog
&mut self
options
&Clog