fn decoding_task(config: Config) -> io::Result<()> {
    let out_name = format!("{}.decoded", config.filename);
    let input = File::open(&config.filename)?;
    let output = OpenOptions::new()
        .write(true)
        .create_new(true)
        .open(out_name)?;

    decode(input, output)?;

    Ok(())
}
/// Produce an regular file from an encoded file.
Produce an regular file from an encoded file.
Produce an regular file from an encoded file .
fn decoding_task(config: Config) -> io::Result<()> {
    let out_name = format!("{}.decoded", config.filename);
    let input = File::open(&config.filename)?;
    let output = OpenOptions::new()
        .write(true)
        .create_new(true)
        .open(out_name)?;
    decode(input, output)?;
    Ok(())
}
fn decoding_task ( config : Config ) -> io :: Result < ( ) > { let out_name = format ! ( " " config filename ) ; let input = File :: open ( & config . filename ) ? ; let output = OpenOptions :: new ( ) . write ( true ) . create_new ( true ) . open ( out_name ) ? ; decode ( input , output ) ? ; Ok ( ( ) ) }
Produce an regular file from an encoded file.
Produce an regular file from an encoded file .
config
Config
config
Config