fn write_live_pxe(initrd: &Initrd, output_path: Option<&String>) -> Result<()> {
    let initrd = initrd.to_bytes()?;
    match output_path {
        Some(path) => write(path, &initrd).with_context(|| format!("writing {}", path)),
        None => {
            let stdout = io::stdout();
            let mut out = stdout.lock();
            out.write_all(&initrd).context("writing output")?;
            out.flush().context("flushing output")
        }
    }
}
/// If output_path is None, we write to stdout.  The caller is expected to
/// have called verify_stdout_not_tty() in this case.
If output_path is None, we write to stdout.  The caller is expected to
have called verify_stdout_not_tty() in this case.
If output_path is None we write to stdout . The caller is expected to have called verify_stdout_not_tty () in this case .
fn write_live_pxe(initrd: &Initrd, output_path: Option<&String>) -> Result<()> {
    let initrd = initrd.to_bytes()?;
    match output_path {
        Some(path) => write(path, &initrd).with_context(|| format!("writing {}", path)),
        None => {
            let stdout = io::stdout();
            let mut out = stdout.lock();
            out.write_all(&initrd).context("writing output")?;
            out.flush().context("flushing output")
        }
    }
}
fn write_live_pxe ( initrd : & Initrd , output_path : Option < & String > ) -> Result < ( ) > { let initrd = initrd . to_bytes ( ) ? ; match output_path { Some ( path ) => write ( path , & initrd ) . with_context ( | | format ! ( " " path ) ) , None => { let stdout = io :: stdout ( ) ; let mut out = stdout . lock ( ) ; out . write_all ( & initrd ) . context ( " " ) ? ; out . flush ( ) . context ( " " ) } } }
If output_path is None, we write to stdout.
If output_path is None we write to stdout .
initrd
&Initrd
output_path
Option<&String>