summary refs log tree commit diff stats
path: root/src/data.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 21:57:01 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 21:57:01 +0200
commit2e5e4b5736c446198e36760e254b7c17dd987166 (patch)
treeb74915864a2c80dbc0a0ebe26a52140a934f45c5 /src/data.rs
parentdocs(example): Add an example directory (diff)
downloadlpm-2e5e4b5736c446198e36760e254b7c17dd987166.tar.gz
lpm-2e5e4b5736c446198e36760e254b7c17dd987166.zip
refactor(treewide): Improve code quality by working with a FileTree
The FileTree has been taken from the implementation written by my for the
Trinitrix project. It alleviates the problem, where functions had to do
many things themselves.
Diffstat (limited to 'src/data.rs')
-rw-r--r--src/data.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/data.rs b/src/data.rs
deleted file mode 100644
index 72609b8..0000000
--- a/src/data.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-use serde_derive::{Deserialize, Serialize};
-
-#[derive(Deserialize, Serialize)]
-pub struct Data {
-    pub last_chapter: LastChapter,
-}
-
-#[derive(Deserialize, Serialize)]
-pub struct LastChapter {
-    pub user_name: String,
-    pub number: u32,
-}
-
-//fn main() {
-//    let config: Config = toml::from_str(r#"
-//        ip = '127.0.0.1'
-//
-//        [keys]
-//        github = 'xxxxxxxxxxxxxxxxx'
-//        travis = 'yyyyyyyyyyyyyyyyy'
-//    "#).unwrap();
-//
-//    assert_eq!(config.ip, "127.0.0.1");
-//    assert_eq!(config.port, None);
-//    assert_eq!(config.keys.github, "xxxxxxxxxxxxxxxxx");
-//    assert_eq!(config.keys.travis.as_ref().unwrap(), "yyyyyyyyyyyyyyyyy");
-//}