title: Unresolved name `Binary` when using the ftp crate
body: <p>I am downloading a file from a FTP server using 
  <a href="https://crates.io/crates/ftp" rel="nofollow">the ftp crate</a>:</p>
  
  <pre><code>extern crate ftp;
  extern crate chrono;
  
  use std::env;
  use std::fs::File;
  use std::str;
  use std::io::{Result, Write};
  use ftp::FtpStream;
  use chrono::*;
  
  
  fn main() {
  
      let args: Vec&lt;String&gt; = env::args().collect();
      ftpgp(&amp;args[1], &amp;args[2], &amp;args[3], &amp;args[4]).unwrap_or_else(|err|
          panic!("{}", err)
      );
  
  }
  
  fn ftpgp(addr: &amp;str, user: &amp;str, pass: &amp;str, remote_path: &amp;str,) -&gt; Result&lt;()&gt; {
      let dt = Local::now();
      let now = dt.format("%Y-%m-%d %H:%M:%S").to_string();
  
      let mut ftp_stream = try!(FtpStream::connect((addr, 21)));
      try!(ftp_stream.login(user, pass));
  
      ftp_stream.cwd(remote_path).unwrap();
      let file_list = try!(ftp_stream.nlst(None));
  
      let files: Vec&lt;String&gt; = file_list.into_iter()
          .filter(|name| name.ends_with(".zip"))
          .collect();
  
      for file in files {
          try!(ftp_stream.retr(file.as_str(), |stream| {
              let mut file = File::create(file.clone()).unwrap();
              let mut buf = [0; 2048];
  
              loop {
                match stream.read(&amp;mut buf) {
                  Ok(0) =&gt; break,
                  Ok(n) =&gt; file.write_all(&amp;buf[0..n]).unwrap(),
                  Err(err) =&gt; return Err(err)
                };
              }
  
              Ok(())
          }));
          println!("{} Saving: {}", now, file);
  
          ftp_stream.rm(file.as_str()).unwrap();
          println!("{} Delete from ftp: {}", now, file);
      }
  
      ftp_stream.quit()
  }
  </code></pre>
  
  <p>But zip files are corrupt after downloading:</p>
  
  <pre class="lang-none prettyprint-override"><code>   unzip -t sample.zip 
     Archive:  sample.zip
     warning [sample.zip]:  252314 extra bytes at beginning or within zipfile
        (attempting to process anyway)
     file #1:  bad zipfile offset (local header sig):  252314
        (attempting to re-compensate)
     testing: sample.pdf  
        error:  invalid compressed data to inflate
     file #2:  bad zipfile offset (local header sig):  67841095
        (attempting to re-compensate)
     file #2:  bad zipfile offset (local header sig):  67841095
     file #3:  bad zipfile offset (local header sig):  68093906
  </code></pre>
  
  <p>I have <a href="http://mattnenterprise.github.io/rust-ftp/ftp/types/enum.FormatControl.html" rel="nofollow">set the type of file to be transferred</a>, but I don't know how.</p>
  
  <p>Like this:</p>
  
  <pre><code>ftp_stream.transfer_type(Binary);
  </code></pre>
  
  <p>is not working.</p>
  
  <pre><code>error: unresolved name `Binary`
  </code></pre>