diff options
author | Stuart Stock <stuart@int08h.com> | 2018-09-30 20:50:24 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-09-30 20:50:24 -0500 |
commit | a1af24e764250cc4abda5c1c5670ca243ee4ad7f (patch) | |
tree | eac04856bf24ce7748ae5e785eea98afca16ed11 /src/config/file.rs | |
parent | d1a76e00fc92d1550e748fd1b393eaf0f10f7112 (diff) | |
download | roughenough-a1af24e764250cc4abda5c1c5670ca243ee4ad7f.zip |
Work-in-progress; still working to clean up config
Diffstat (limited to 'src/config/file.rs')
-rw-r--r-- | src/config/file.rs | 2 |
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(); |