summaryrefslogtreecommitdiff
path: root/src/config/file.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-09-30 20:50:24 -0500
committerStuart Stock <stuart@int08h.com>2018-09-30 20:50:24 -0500
commita1af24e764250cc4abda5c1c5670ca243ee4ad7f (patch)
treeeac04856bf24ce7748ae5e785eea98afca16ed11 /src/config/file.rs
parentd1a76e00fc92d1550e748fd1b393eaf0f10f7112 (diff)
downloadroughenough-a1af24e764250cc4abda5c1c5670ca243ee4ad7f.zip
Work-in-progress; still working to clean up config
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();