Add Rustdoc::current_dir method to run-make-support

This commit is contained in:
Guillaume Gomez 2024-05-03 15:12:37 +02:00
parent d6d3b342e8
commit cc29dfa785

View File

@ -261,6 +261,12 @@ macro_rules! impl_common_helpers {
}
output
}
/// Set the path where the command will be run.
pub fn current_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
self.cmd.current_dir(path);
self
}
}
};
}