diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/config.rs b/src/config.rs deleted file mode 100644 index bfffd54..0000000 --- a/src/config.rs +++ /dev/null @@ -1,17 +0,0 @@ -use serde::Deserialize; -use std::fs; - -#[derive(Deserialize, Debug)] -pub struct Config { - pub title: String, - pub url: String, - pub author: String, -} - -pub fn parse_file(filename: &str) { - let contents = fs::read_to_string(filename) - .expect("something went wrong reading to file"); - - let config: Config = toml::from_str(&contents) - .expect("failed to parse toml formatting"); -} |
