summary refs log tree commit diff stats
path: root/src/config_file.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-13 06:40:48 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-13 06:40:48 +0200
commit07c2924e7abc9641df6f6bc6181c912b70904972 (patch)
treec006b1f66588c1b4e6f1a96c7d6be24c1a2d87a4 /src/config_file.rs
parentfeat(cli): Switch to stderrlog, configured by cli options (diff)
downloadlpm-07c2924e7abc9641df6f6bc6181c912b70904972.tar.gz
lpm-07c2924e7abc9641df6f6bc6181c912b70904972.zip
feat(new): Ensure that file names are ASCII only
This allows us to just query the last chapter instead of storing it.
Diffstat (limited to 'src/config_file.rs')
-rw-r--r--src/config_file.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/config_file.rs b/src/config_file.rs
index 2233b36..2244893 100644
--- a/src/config_file.rs
+++ b/src/config_file.rs
@@ -2,17 +2,10 @@ use serde_derive::{Deserialize, Serialize};
 
 #[derive(Deserialize, Serialize)]
 pub struct Config {
-    pub last_chapter: LastChapter,
     pub templates: Template,
 }
 
 #[derive(Deserialize, Serialize)]
-pub struct LastChapter {
-    pub user_name: String,
-    pub number: u32,
-}
-
-#[derive(Deserialize, Serialize)]
 pub struct Template {
     pub section: String,
     pub chapter: String,