summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2018-07-20 18:46:22 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2018-07-20 18:46:22 -0400
commit13d27d3cb6ebd9de63bd99e75daf340ebfc5e0c0 (patch)
tree60f8e581b20fe52ccb0a54c58cbe825113e55efb
parent2c0c119aed0fd6219027a2ec9bd0c5c13ebc7bbb (diff)
cleanup
-rw-r--r--src/joshuto/structs.rs3
-rw-r--r--src/main.rs9
2 files changed, 6 insertions, 6 deletions
diff --git a/src/joshuto/structs.rs b/src/joshuto/structs.rs
index ee73363..d158159 100644
--- a/src/joshuto/structs.rs
+++ b/src/joshuto/structs.rs
@@ -15,8 +15,7 @@ pub struct JoshutoDirEntry {
impl JoshutoDirEntry {
- pub fn new(path : &str, show_hidden : bool,
- parent : Option<JoshutoDirEntry>)
+ pub fn new(path : &str, show_hidden : bool)
-> Result<JoshutoDirEntry, std::io::Error>
{
let dir_contents : Vec<fs::DirEntry>;
diff --git a/src/main.rs b/src/main.rs
index 5f55fbf..59d2f54 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -43,7 +43,7 @@ fn generate_default_config() -> JoshutoConfig
color_scheme: None,
sort_method: None,
// keymaps: None,
- mimetypes: None, //toml::value::Table::new(),
+ mimetypes: None,
}
}
@@ -87,10 +87,11 @@ fn main()
{
let args: Vec<String> = env::args().collect();
+ println!("args:\n{:?}", args);
+
let mut config = get_config();
- println!("{:?}", config);
- println!("{:?}", config.mimetypes);
+ println!("config:\n{:?}", config);
- //joshuto::run(&mut config);
+ joshuto::run(&mut config);
}