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

Bump dependency on rustc-serialize and lose old_io #110

Merged
merged 1 commit into from
Mar 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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