fn load_paths(file: &str) -> Result<Vec<String>> {
    let file      = try!(File::open(file));
    let breader   = BufReader::new(file);
    let mut paths = Vec::new();

    for line in breader.lines() {
        let path = try!(line);
        if !path.starts_with('#') {
            paths.push(path);
        }
    }

    Ok(paths)
}
/// Load all path variants from a given file.
Load all path variants from a given file.
Load all path variants from a given file .
fn load_paths(file: &str) -> Result<Vec<String>> {
    let file      = try!(File::open(file));
    let breader   = BufReader::new(file);
    let mut paths = Vec::new();
    for line in breader.lines() {
        let path = try!(line);
        if !path.starts_with('#') {
            paths.push(path);
        }
    }
    Ok(paths)
}
fn load_paths ( file : & str ) -> Result < Vec < String > > { let file = try ! ( File open ( file ) ) ; let breader = BufReader :: new ( file ) ; let mut paths = Vec :: new ( ) ; for line in breader . lines ( ) { let path = try ! ( line ) ; if ! path . starts_with ( '#' ) { paths . push ( path ) ; } } Ok ( paths ) }
Load all path variants from a given file.
Load all path variants from a given file .
file
&str
file
&str