The following no longer works: let file = match std::os::args() { [_prog, f] => f, _ => fail!("usage"), };
This works, but is not pretty. Is there a better solution? let file = match std::os::args().as_slice() { [ref _prog, ref f] => f.to_owned(), _ => fail!("usage"), }; Thanks, and sorry if this is a repeat, I don't see any relevant threads and I see this is a very recent change. Michael
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev