Skip to content

Commit

Permalink
rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Feb 5, 2015
1 parent e26c1b5 commit 5db094b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/nfl_plays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extern crate csv;
extern crate "rustc-serialize" as rustc_serialize;

use std::path::Path;
use std::old_path::Path;

#[allow(dead_code)]
#[derive(RustcDecodable)]
Expand Down
4 changes: 2 additions & 2 deletions examples/simple.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![feature(path)]
#![feature(core, path)]

extern crate csv;

use std::path::Path;
use std::old_path::Path;

fn main() {
let fp = &Path::new("./data/simple.csv");
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_missing.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#![feature(path)]
#![feature(core, path)]

extern crate csv;
extern crate "rustc-serialize" as rustc_serialize;

use std::path::Path;
use std::old_path::Path;

#[derive(RustcDecodable)]
struct Record {
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_struct.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#![feature(path)]
#![feature(core, path)]

extern crate csv;
extern crate "rustc-serialize" as rustc_serialize;

use std::path::Path;
use std::old_path::Path;

#[derive(RustcDecodable)]
struct Record {
Expand Down
2 changes: 1 addition & 1 deletion src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn ordie<T, E: Debug+Display>(r: Result<T, E>) -> T {
}

fn file_to_mem(fp: &str) -> io::MemReader {
use std::path::Path;
use std::old_path::Path;

let mut f = ordie(io::File::open(&Path::new(fp)));
let bs = ordie(f.read_to_end());
Expand Down

0 comments on commit 5db094b

Please sign in to comment.