libstd: Change Path::new to Path::init.
This commit is contained in:
parent
6c672ee094
commit
c54427ddfb
40 changed files with 546 additions and 541 deletions
|
|
@ -72,7 +72,7 @@ fn shift_push() {
|
|||
fn read_line() {
|
||||
use std::io::buffered::BufferedReader;
|
||||
|
||||
let mut path = Path::new(env!("CFG_SRC_DIR"));
|
||||
let mut path = Path::init(env!("CFG_SRC_DIR"));
|
||||
path.push("src/test/bench/shootout-k-nucleotide.data");
|
||||
|
||||
for _ in range(0, 3) {
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ fn main() {
|
|||
};
|
||||
|
||||
let writer = if os::getenv("RUST_BENCH").is_some() {
|
||||
let file = File::create(&Path::new("./shootout-fasta.data"));
|
||||
let file = File::create(&Path::init("./shootout-fasta.data"));
|
||||
@mut file as @mut io::Writer
|
||||
} else {
|
||||
@mut io::stdout() as @mut io::Writer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue