summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorradhitya <alif@radhitya.org>2026-06-25 22:54:44 +0700
committerradhitya <alif@radhitya.org>2026-06-25 22:54:44 +0700
commit59c35ef54ca3c967cb3607d3e2d4d6a144d30f60 (patch)
tree477c8eb5dabd9b4af87e9b03b6959d65f2140d43 /src/config.rs
parente2ef625c779dffd6a580c0aa8d1d57dcf7abd7eb (diff)
goodbye rustHEADmaster
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs17
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");
-}