make usable
This commit is contained in:
@@ -4,7 +4,7 @@ use std::str::FromStr;
|
||||
use std::io::prelude::*;
|
||||
use std::collections::HashMap;
|
||||
|
||||
static file: &str = "mrprox.conf";
|
||||
static FILE: &str = "mrprox.conf";
|
||||
|
||||
pub struct Servers{
|
||||
l_servers : HashMap<String, String>,
|
||||
@@ -18,7 +18,7 @@ impl Servers {
|
||||
}
|
||||
|
||||
fn get_servers() -> HashMap<String, String> {
|
||||
let mut f = File::open(&file).unwrap();
|
||||
let mut f = File::open(&FILE).unwrap();
|
||||
let mut s = String::new();
|
||||
let mut ret = HashMap::new();
|
||||
f.read_to_string(&mut s).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user