summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorAlif Radhitya <radhitya@noreply.codeberg.org>2026-06-25 17:53:21 +0200
committerAlif Radhitya <radhitya@noreply.codeberg.org>2026-06-25 17:53:21 +0200
commite2ef625c779dffd6a580c0aa8d1d57dcf7abd7eb (patch)
tree32c9da33a864c744fede28fe11654fc7bbd479bc /src/config.rs
parent829b4e3cf1e59732d0166cbd24d31c93c4095977 (diff)
parent85133d6dcaa7b02d67e243ce8df8324e46f4009f (diff)
Merge pull request 'farewell adieu rust' (#1) from exp into master
Reviewed-on: https://codeberg.org/radhitya/ahsi/pulls/1
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs
index 8dc8a6f..bfffd54 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -9,14 +9,9 @@ pub struct Config {
}
pub fn parse_file(filename: &str) {
- println!("loaded {} config file", filename);
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");
-
- println!("title: {}", config.title);
- println!("url: {}", config.url);
- println!("author: {}", config.author);
}