summaryrefslogtreecommitdiffstats
path: root/src/commands/open_file.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-05 20:45:04 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-05 20:45:04 -0400
commitebf8e5c674322a0fe85339e57b0f6a80e51087d3 (patch)
tree0c061ac6554f4f0a19c867a74d1fdfc975377711 /src/commands/open_file.rs
parent4c194de5c7e940e1eaf71c0fb4b455ba6547c880 (diff)
cargo fmt
Diffstat (limited to 'src/commands/open_file.rs')
-rw-r--r--src/commands/open_file.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs
index b606330..c9f689d 100644
--- a/src/commands/open_file.rs
+++ b/src/commands/open_file.rs
@@ -34,25 +34,25 @@ impl OpenFile {
mimetype_options.extend(ext_entries);
}
}
-/*
+ /*
match tree_magic::from_filepath(&path) {
None => {},
Some(mimetype) => {
/* mime subtype have second priority */
- if let Some(s) = MIMETYPE_T.mimetype.get(&mimetype) {
- mimetype_options.extend(s.iter());
- }
+ if let Some(s) = MIMETYPE_T.mimetype.get(&mimetype) {
+ mimetype_options.extend(s.iter());
+ }
- /* generic mime type have last priority */
- if let Some(s) = mimetype.find('/') {
- let mimetype_type = &mimetype[..s];
- if let Some(s) = MIMETYPE_T.mimetype.get(mimetype_type) {
- mimetype_options.extend(s.iter());
- }
- }
- }
+ /* generic mime type have last priority */
+ if let Some(s) = mimetype.find('/') {
+ let mimetype_type = &mimetype[..s];
+ if let Some(s) = MIMETYPE_T.mimetype.get(mimetype_type) {
+ mimetype_options.extend(s.iter());
+ }
+ }
+ }
}
-*/
+ */
mimetype_options
}