summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-27 12:44:09 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-27 12:46:19 -0500
commite81261f00c2c897925c2c1b09c9f8d518a67f2a2 (patch)
treeed59e9c1c6092c44aea8ee5b22e02497c516d835 /src/main.rs
parent02412ff957e19892d301e25a51f620721b869368 (diff)
make theme and mimetypes static
- reduce the need to pass them into every function
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index 4490e00..9ecfbf0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -28,14 +28,8 @@ fn main()
let config = joshuto::config::JoshutoConfig::get_config();
// println!("{:#?}", config);
- let mimetype = joshuto::config::JoshutoMimetype::get_config();
-// println!("{:#?}", mimetype);
-
let keymap = joshuto::config::JoshutoKeymap::get_config();
// println!("{:#?}", keymap);
- let theme = joshuto::config::JoshutoTheme::get_config();
-// println!("{:#?}", theme);
-
- joshuto::run(config, keymap, mimetype, theme);
+ joshuto::run(config, keymap);
}