From e42e51695ba57454996bda10dfd0b064d5d0330c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 31 Aug 2017 08:45:14 +0100 Subject: [PATCH] Dont add too many paths to PATH when searching for pandoc exe --- src/build/pandoc.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/build/pandoc.rs b/src/build/pandoc.rs index d46953b..64673d1 100644 --- a/src/build/pandoc.rs +++ b/src/build/pandoc.rs @@ -4,15 +4,6 @@ use std::env::{current_dir, current_exe}; use std::path::PathBuf; use std::error::Error; -fn add_path_hints(pandoc: &mut Pandoc, path: &mut PathBuf) { - let mut out = true; - while out { - pandoc.add_pandoc_path_hint(path); - out = path.pop(); - } -} - - fn execute_pandoc(config: Config, input: String) -> Result { let mut renderer = Pandoc::new(); renderer.set_output_format(pandoc::OutputFormat::Html5, vec![]); @@ -21,8 +12,7 @@ fn execute_pandoc(config: Config, input: String) -> Result