diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-03-30 15:11:08 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-03-30 15:11:08 -0400 |
commit | 554f06d72aeb639548314336b2318e14f8ffcc7e (patch) | |
tree | 4f3346fdd7b9302ccaa82089cd7eceff4d8b28de /src/main.rs | |
parent | f56511becd2be285ff2ce74269113384856aaa95 (diff) |
move view struct out of Context and pass in as a separate argument
- rename static variables to all caps
- change index to be Option<usize> rather than i32 where -1 means
the directory is empty
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 9287ce1..a4408cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,9 +40,9 @@ lazy_static! { } temp }; - static ref theme_t: JoshutoTheme = JoshutoTheme::get_config(); - static ref mimetype_t: JoshutoMimetype = JoshutoMimetype::get_config(); - static ref preview_t: JoshutoPreview = JoshutoPreview::get_config(); + static ref THEME_T: JoshutoTheme = JoshutoTheme::get_config(); + static ref MIMETYPE_T: JoshutoMimetype = JoshutoMimetype::get_config(); + static ref PREVIEW_T: JoshutoPreview = JoshutoPreview::get_config(); } #[derive(StructOpt, Debug)] |