Fix os args

This commit is contained in:
Mathijs van de Nes 2015-02-13 09:58:42 +01:00
parent 355269e9ba
commit 897ff2a82a
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
#![feature(path, io, os, env, core)]
#![feature(path, io, env)]
extern crate zip;
@ -6,7 +6,7 @@ use std::old_io;
fn main()
{
let args = std::env::args().map(|v| v.into_string().unwrap()).collect::<Vec<_>>();
let args: Vec<_> = std::env::args().collect();
if args.len() < 2 {
println!("Usage: {} <filename>", args[0]);
std::env::set_exit_status(1);

View file

@ -1,10 +1,10 @@
#![feature(os, path, io, env)]
#![feature(path, io, env)]
extern crate zip;
fn main()
{
let args = std::env::args().map(|v| v.into_string().unwrap()).collect::<Vec<_>>();
let args: Vec<_> = std::env::args().collect();
if args.len() < 2 {
println!("Usage: {} <filename>", args[0]);
std::env::set_exit_status(1);

View file

@ -1,10 +1,10 @@
#![feature(io, os, path, env)]
#![feature(io, path, env)]
extern crate zip;
fn main()
{
let args = std::env::args().map(|v| v.into_string().unwrap()).collect::<Vec<_>>();
let args: Vec<_> = std::env::args().collect();
if args.len() < 2 {
println!("Usage: {} <filename>", args[0]);
std::env::set_exit_status(1);