summaryrefslogtreecommitdiff
path: root/src/config/file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/file.rs')
-rw-r--r--src/config/file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/file.rs b/src/config/file.rs
index 24011bb..8aa8ca2 100644
--- a/src/config/file.rs
+++ b/src/config/file.rs
@@ -45,7 +45,7 @@ pub struct FileConfig {
}
impl FileConfig {
- pub fn from_file(config_file: &str) -> Result<Self, Error> {
+ pub fn new(config_file: &str) -> Result<Self, Error> {
let mut infile = File::open(config_file).expect("failed to open config file");
let mut contents = String::new();