Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #110 from alexcrichton/update
Browse files Browse the repository at this point in the history
Bump dependency on rustc-serialize and lose old_io
  • Loading branch information
BurntSushi committed Mar 3, 2015
2 parents 3a7b289 + 4677aec commit 5d21864
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ test = false
[dependencies]
libc = "*"
regex = "*"
rustc-serialize = "0.2.0"
rustc-serialize = "0.3"
2 changes: 1 addition & 1 deletion docopt_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ path = ".."
version = "*"

[dev-dependencies]
rustc-serialize = "0.2.0"
rustc-serialize = "0.3"
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,13 @@
#![deny(missing_docs)]

// These MUST be removed for Rust 1.0 stable.
#![feature(collections, core, old_io, std_misc, unicode)]
#![feature(collections, core, std_misc, unicode, io)]

extern crate libc;
extern crate regex;
extern crate "rustc-serialize" as rustc_serialize;

use std::io::{self, Write};
use std::borrow::ToOwned;
use std::collections::HashMap;
use std::error::Error as StdError;
Expand All @@ -240,7 +241,7 @@ use Error::{Usage, Argv, NoMatch, Decode, WithProgramUsage, Help, Version};

macro_rules! werr(
($($arg:tt)*) => (
match std::old_io::stderr().write_str(&*format!($($arg)*)) {
match write!(&mut io::stderr(), $($arg)*) {
Ok(_) => (),
Err(err) => panic!("{}", err),
}
Expand Down

0 comments on commit 5d21864

Please sign in to comment.