diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-20 13:08:26 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-20 14:00:05 -0400 |
commit | 8fc59f0a0c3729d201f844738db5275035f59f2d (patch) | |
tree | 6deeba8db7275387f44b5bdb03c1f801efe437ab /src/config | |
parent | 84e912b7779faaaeb09d1085e09630a548c7fb54 (diff) |
add initial support for detecting mimetypes
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/mimetype.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/mimetype.rs b/src/config/mimetype.rs index f8c4f69..e6103dd 100644 --- a/src/config/mimetype.rs +++ b/src/config/mimetype.rs @@ -2,7 +2,7 @@ use serde_derive::Deserialize; use std::collections::HashMap; use std::fmt; use std::io::Read; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; use std::process; use super::{parse_config_file, ConfigStructure}; @@ -82,7 +82,7 @@ impl JoshutoMimetypeEntry { self._confirm_exit } - pub fn execute_with(&self, paths: &[&PathBuf]) -> std::io::Result<()> { + pub fn execute_with(&self, paths: &[&Path]) -> std::io::Result<()> { let program = String::from(self.get_command()); let mut command = process::Command::new(program); |