From 308fb4f7923989e90087fb70a6d1f914af3ede67 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 7 May 2015 00:10:55 +0200 Subject: vtcol.rs: adapt symbol paths for fs, io and std --- src/vtcol.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vtcol.rs b/src/vtcol.rs index d6b46fd..d3001a7 100644 --- a/src/vtcol.rs +++ b/src/vtcol.rs @@ -126,7 +126,7 @@ impl<'a> Job<'a> { new () -> Job<'a> { - let argv = std::os::args(); + let argv = std::env::args(); let this = argv[0].clone(); let opts = &[ getopts::optopt("s", "scheme", "predefined color scheme", "NAME"), @@ -393,7 +393,7 @@ impl Palette { pub fn from_buffered_reader - (reader : &mut std::io::BufferedReader) + (reader : &mut std::io::BufReader) -> Palette { let mut pal_idx : usize = 0_usize; @@ -438,13 +438,13 @@ impl Palette { { /* Check if file exists */ - let path = Path::new(fname.as_bytes()); - let file = match std::io::File::open(&path) + let path = std::path::Path::new(fname.as_bytes()); + let file = match std::fs::File::open(&path) { Err(e) => panic!("failed to open {} as file ({})", fname, e), Ok(f) => f }; - let mut reader = std::io::BufferedReader::new(file); + let mut reader = std::io::BufReader::new(file); /* Parse scheme file */ -- cgit v1.2.3