(&self, arg: &str)
| 745 | } |
| 746 | |
| 747 | fn execute_which_in_shell(&self, arg: &str) -> Option<String> { |
| 748 | match which(arg) { |
| 749 | Ok(path) => Some(path_to_string(&path)), |
| 750 | Err(_) => None, |
| 751 | } |
| 752 | } |
| 753 | |
| 754 | fn get_first_in_vector(&self, vector: Vec<&str>) -> Option<String> { |
| 755 | if vector.is_empty() { |
no test coverage detected